I have been unable to reinstall suitecrm since about Xmas. Its not a matter of life , death or income so Iâve been plugging away using virtual box.
Using my trusty tried and true scripts which has always worked before, and various adaptations thereof, Ive have worked my way through various Mint versions, ( run into php version problems), Debian ( creates a blank installation page), Fedora, MX ( cannot get into installation page) and today Ubuntu 22.04.1 LTS which after update installed a php version of 8.1.2. The matrix says this is incompatible, so I didnât bother proceeding .
So several questions. Well, actually just one.
- What do I do now ? regarding php versions ?
Script is attached. Perhaps its obvious where I am going wrong, but I just donât see itâŚ
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-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-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-openssl <âunable to locate packageâŚMX LinuxâŚLinux Mint
sudo apt-get install php-pdo_mysql <âunable to locate packageâŚMX LinuxâŚLinux Mint
sudo apt-get install php-mysqli <âAlready installed âŚLinux Mint
sudo apt-get install php-pdo_mysql <â Unable to locate packageâŚLinux Mint
sudo apt-get install php-common <âalready the newestâŚMX LinuxâŚLinux Mint
âStart the Apache service and enable Apache and MariaDB to enable on system start
âMX Linux wonât start apache unless Systemd is enabled at boot
sudo systemctl start apache2
sudo systemctl start mysql
sudo systemctl enable apache2
sudo systemctl enable mariadb
âEdit php.ini
sudo nano /etc/php/7.4/apache2/php.ini . Location varies per php version.
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
â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 âpasswordâ;
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 1
âcomplete installation
-------------------------------end Suitecrm7 install -----------------------
-----------------------------this block is for Suitecrm8 install
âCreate suitecrm folder at /var/www/html/suitecrm
âDownload and unzip Suitecrm8 into the suitecrm folder var/www/html/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
-orâ
<VirtualHost *:80>
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 which we will fix after initial setup.
localhost/suitecrm/public
âAccept License, then click on configuration,
âFill in the form with
URL = https://localhost/suitecrm
-or
URL = hhtps://127.0.0.1
DataBase User = larry
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 = password
âEdit /var/www/html/suitecrm/public/legacy
âCorrect formatting error caused by wrong pathing in the .htaccess under rtewrite rules.
â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
-or
http://127.0.0.1/suitecrm
Thanks.