To set up SuiteCRM on a Linux server, follow these steps:
Server Requirements:
Update the System:
sudo apt update && sudo apt upgrade -y
Install Apache, PHP, and MySQL:
sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-zip php-xml php-mbstring php-curl php-gd php-imap php-bcmath -y
Secure MySQL (optional but recommended):
sudo mysql_secure_installation
Create a Database and User for SuiteCRM:
sudo mysql -u root -p
CREATE DATABASE suitecrm_db;
CREATE USER 'suitecrm_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON suitecrm_db.* TO 'suitecrm_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Go to the SuiteCRM website and download the latest version.
wget https://suitecrm.com/files/162/SuiteCRM-8/620/SuiteCRM-8.2.4.zip -O suitecrm.zip
Extract the File:
sudo apt install unzip -y
unzip suitecrm.zip -d /var/www/
sudo mv /var/www/SuiteCRM-8.2.4 /var/www/suitecrm
sudo chown -R www-data:www-data /var/www/suitecrm
sudo chmod -R 755 /var/www/suitecrm
sudo chmod -R 775 /var/www/suitecrm/cache /var/www/suitecrm/custom /var/www/suitecrm/logs /var/www/suitecrm/public/legacy/modules
Create Apache Config File:
sudo nano /etc/apache2/sites-available/suitecrm.conf
Add the Following Configuration:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/suitecrm/public
ServerName example.com
<Directory /var/www/suitecrm/public>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Enable the Configuration and Rewrite Module:
sudo a2ensite suitecrm.conf
sudo a2enmod rewrite
sudo systemctl restart apache2
Access SuiteCRM in a Browser:
http://your_server_ip_or_domain to open the SuiteCRM setup wizard.Follow the Installer:
Finalize Permissions:
sudo chown -R www-data:www-data /var/www/suitecrm
After completing these steps, SuiteCRM should be ready on your Linux server!