Hope this helpsâŚ
Note: I am not an expert. This script was developed by trial and error. Mostly error. However, it works on my machine.
Note: I am using Linux Mint. The php version installed was 7.4
Note: I needed to install Suitecrm in the html directory as it didnât work in the www directory. I dont know why.
Note: The directory for vhost is /etc/apache2/sites-enabled/suitecrm.conf This is quite different than a lot of guides.
Note: I used separate command lines to make is easier to find issues.
Note: I restart Apache after every change to php.ini and vhost files. I keep a separate terminal window open just for this.
Note: In php.ini I tried to edit cookie lifetimes to solve the being logged out problem, but eventually those changes bit me.
Note: I did not create a new root password for mariadb and it was assigned the linux Mint root (log in password.) Iâm a single user so its not an issue.
âUpdate packages: --Install mariadb,apache and PHP modules.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2 apache2-utils libapache2-mod-php libpcre3 libpcre3-dev zlib1g zlib1g-dev mariadb-server unzip
sudo apt-get install php
sudo apt-get install php-cli
sudo apt-get install php-curl
sudo apt-get install php-common <âalready the newestâŚMX LinuxâŚLinux Mint
sudo apt-get install php-intl
sudo apt-get install php-json
sudo apt-get install php-gd
sudo apt-get install php-mbstring
sudo apt-get install php-mysqli
sudo apt-get install php-pdo_mysql <âunable to locate packageâŚMX LinuxâŚLinux Mint
sudo apt-get install php-openssl <âunable to locate packageâŚMX LinuxâŚLinux Mint
sudo apt-get install php-soap
sudo apt-get install php-xml
sudo apt-get install php-zip
sudo apt-get install php-imap
sudo apt-get install php-ldap
sudo apt-get install php-mysqli <âAlready installed âŚLinux Mint
sudo apt-get install php-pdo_mysql <â Unable to locate packageâŚLinux Mint
âStart the Apache service and enable Apache and MariaDB to enable on system start
sudo systemctl start apache2 <âMX Linux wonât start apache unless Systemd is enabled at boot
sudo systemctl start mysql
sudo systemctl enable apache2
sudo systemctl enable mariadb
âEdit php.ini located at /etc/php/7.4/apache2/php.ini
upload_max_filesize = 8M <--Note this must be > 6M as 6M gives error.
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING <-Line 110
âSecure and harden MariaDB.
sudo mysql_secure_installation
âCreate database
sudo mysql -u root -p
MariaDB [(none)]> CREATE DATABASE suitecrm;
MariaDB [(none)]> CREATE USER âlarryâ@âlocalhostâ IDENTIFIED BY âsecretpasswordâ;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON suitecrm.* TO âlarryâ@âlocalhostâ;
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit;
âRestart Apache
sudo systemctl restart apache2
--------------------------- this block is for Suitecrm7 install ------------------------------------
âDownload the latest SuiteCRM files
Create a directory here /var/www/html/suitecrm
â Unzip the downloaded file into the suitecrm directory
â Open a root terminal in the suitecrm directory
â Assign appropriate permission to the unzipped folder
sudo chown -R www-data:www-data /var/www/html/suitecrm
sudo chmod -R 755 /var/www/html/suitecrm
âOpen your internet browser and enter URL:
http://localhost/suitecrm/install.php
âcomplete installation
-------------------------------end Suitecrm7 install -----------------------
-----------------------------this block is for Suitecrm8 install ----------------------------
âCreate suitecrm folder located at /var/www/html/suitecrm
âDownload and unzip Suitecrm8 into the suitecrm folder var/www/html/crm/suitecrm
âOpen a root terminal from suitecrm folder. Set permissions for crm folder and all sub folders.
find . -type d -not -perm 2755 -exec chmod 2755 {} ;
find . -type f -not -perm 0644 -exec chmod 0644 {} ;
find . ! -user www-data -exec chown www-data:www-data {} ;
chmod +x bin/console;
âConfigure URL re-writes. (Specific to Linux Mint, Possibly Debian and Ubuntu )
âcreate this document. /etc/apache2/sites-enabled/suitecrm.conf
âinsert following
DocumentRoot /var/www/html/suitecrm/public
<Directory /var/www/html/suitecrm/public>
AllowOverride All
Order Allow,Deny
Allow from All
Require all granted
âenable rewrites and restart apache. Typos in suitecrm.conf will result in errors in restarting apache.
sudo a2enmod rewrite
sudo systemctl restart apache2
âTo start install, enter this address into browser. Note that a bug in suitecrm8 will create a formatting error in public/legacy/.htaccess.
localhost/suitecrm/public
âAccept License, then click on configuration,
âFill in the form with
URL = https://localhost/suitecrm â This one worked. Note. different URLs may cause different errors elsewhere.
DataBase User = larry â I had to reinstall larry as a user using the admin account.
Password = secret password
Host name = 127.0.0.1 <âUse of name localhost is not supported yet
Database Name = suitecrm
DataBasePort = 3306 â This is default for mariadb and mysql
Application Admin Name = admin
Admin User password = secret password <Is not entered twice, so susceptible to error.
âEdit /var/www/html/suitecrm/public/legacy
âCorrect formatting error caused by wrong pathing in the .htaccess under rtewrite rules. Thank you to Maintainers Mac-Rae for identifying these.
âLook for these two lines
RewriteEngine On
RewriteBase /crm/SuiteCRM-8.0.1legacy/ <------- This line is malformed.
â edit second (malformed) line to
RewriteBase /suitecrm/public/legacy/
âand save.
âLogon using browser.
http://localhost/suitecrm/public/#/home < Note. Login using my database user name âlarryâ does not work. Login using name admin" does work.
http://127.0.0.1/suitecrm/public/#/Login