How to Install SuiteCRM on Ubuntu 20.04

Install SuiteCRM on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Install SuiteCRM on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

SuiteCRM is an application that loads the sales, markets, and services administration of a company. It is a fork of the popular open-source SugarCRM Community Edition. It comes bundled with additional open-source modules and standard features found within SugarCRM CE.

Install SuiteCRM on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install LAMP Stack on Ubuntu.

SuiteCRM is built with PHP. You can host it like you would any other web app is written in PHP. So, you’re going to need to set Ubuntu up as either a LAMP server. If you haven’t done so already, use our traditional LAMP guide to set up Ubuntu to serve PHP before you continue.

Step 3. Install SuiteCRM on the Ubuntu system.

Now we can download SuiteCRM from the official page:

cd /tmp/

Once the download is complete, extract the archive:

mv SuiteCRM-7.11.18 /var/www/html/suite/

Next, we are going to assign Apache permissions with the following commands:

sudo chown -R www-data:www-data /var/www/html/suite/
sudo chmod 755 -R /var/www/html/suite/

Step 4. Creating a MySQL database for SuiteCRM.

SuiteCRM uses the MySQL database to store all its data like posts, pages, users, plugins, and themes settings. Log in to your MySQL server with the following command and enter your MySQL root password:

mysql -u root -p

Once you’re in the MySQL console, create a new database:

GRANT ALL PRIVILEGES ON suitecrmdb.* TO 'suiteuser'@'localhost' IDENTIFIED BY 'your-passwd';

Step 5. Configuring Apache for SuiteCRM.

Create a new virtual host configuration file for your SuiteCRM website, named

nano /etc/apache2/sites-available/

And add the following content to the file:

<VirtualHost *:80>
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/suite

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

     <Directory /var/www/html/suite/>
            Options FollowSymlinks
            AllowOverride All
            Require all granted

To enable the virtual host we have just created, run the following command:

ln -s /etc/apache2/sites-available/ /etc/apache2/sites-enabled/

For the new configuration to take effect, restart the Apache service by typing:

sudo a2ensite
sudo a2enmod rewrite 
sudo systemctl restart apache2

Step 6. Secure SuiteCRM with Let’s Encrypt SSL.

First, you will need to install the Certbot client to install and manage the Let’s Encrypt SSL. You can install it with the following command:

sudo apt install certbot python3-certbot-apache

Once the Certbot is installed, run the following command to download and install Let’s Encrypt SSL for your website:

certbot --apache -d

Step 7. Completing the SuiteCRM Installation.

We will now be able to complete the installation using SuiteCRM’s web interface. Go to and you will see the license terms.

Install SuiteCRM on Ubuntu 20.04

That’s all you need to do to install Install SuiteCRM on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Install SuiteCRM, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.