SuiteCRM

De Le Wiki de Lug
Aller à la navigation Aller à la recherche

LXC Unbuntu 20.04

Installation

Source

On installe l'ensemble LAMP et autres dépendances :

# apt update && apt upgrade
# apt install apache2 apache2-utils mariadb-server mariadb-client unzip php-imagick php7.4-fpm php7.4-mysql php7.4-common php7.4-gd php7.4-imap php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-gmp

Archive SuiteCRM

On se rend à cette adresse pour récupérer et déployer la dernière verion de SuiteCRM :

# wget https://suitecrm.com/files/162/SuiteCRM-7.11/560/SuiteCRM-7.11.21.zip
# unzip SuiteCRM-7.11.21.zip -d /var/www/
# mv /var/www/SuiteCRM-7.11.21 /var/www/suitecrm
# rm SuiteCRM-7.11.21.zip

On attribue les droits et permissions :

# chown -R www-data. /var/www/suitecrm
# cd /var/www/suitecrm
# chmod -R 755 .
# chmod -R 775 cache custom modules themes data upload
# chmod 775 config_override.php 2>/dev/null

Configuration de MariaDB

On sécurise la base de données :

# mysql_secure_installation
Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
... Success!

Ensuite on crée la base de données pour SuiteCRM et son utilisateur :

# sudo mysql -u root
> CREATE DATABASE suitecrm;
> GRANT ALL ON suitecrm.* TO 'suitecrm'@'localhost' IDENTIFIED BY 'monsupermotdepasse';
> FLUSH PRIVILEGES;
> EXIT;