How to install the SuiteCRM Customer Resource Manager on Ubuntu Server

If your enterprise wants a Buyer Useful resource Administration platform, Jack Wallen has an open-source answer that simply would possibly match the invoice. Right here, he’ll stroll you thru putting in SuiteCRM.


Picture: Jirsak, Getty Pictures/iStockphoto

As your enterprise grows, you will most likely end up needing to handle buyer relations. With such a platform obtainable to your enterprise, your workers can higher handle their shoppers, clients, alternatives, leads and way more.

SEE: Guidelines: Find out how to handle your backups (TechRepublic Premium)

What you will want

You is likely to be pondering, “Why not simply go along with a paid service for this?” In case your funds is tight, you need to take into account deploying such a service by yourself. Not solely will it prevent cash, but it surely’ll additionally maintain your entire essential information in-house. On this day of fixed safety breaches, having that information throughout the confines of your information heart is usually a much-needed safety blanket (as long as your community is safe).

I will stroll you thru the method of putting in the open-source SuiteCRM platform, one which focuses on gross sales, advertising and marketing and providers administration.

The one issues you’ll want to make this work are a working occasion of Ubuntu Server and a person with sudo privileges. With these issues on the prepared, let’s get to work.

Find out how to set up NGINX and MariaDB

We will use NGINX and MariaDB as our net and database servers. To put in these items, log in to your Ubuntu server and situation the command:

sudo apt set up nginx mariadb-server -y

As soon as these two items set up, begin and allow the providers with:

sudo systemctl begin nginx
sudo systemctl begin mariadb
sudo systemctl allow nginx
sudo systemctl allow mariadb

Give the MariaDB root person a password with the command:

sudo mysql_secure_installation

Ensure to make use of a safe/distinctive password after which reply y to the remaining questions. Lastly, set up the required dependencies with:

sudo apt set up 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 -y

Find out how to create the database

Subsequent, we’ll create the database. Log in to the MariaDB console with:

sudo mysql -u root

Create the database with:


Create the suitecrm database person with:

GRANT ALL ON suitecrm.* TO 'suitecrm'@'localhost' IDENTIFIED BY 'PASSWORD';

The place PASSWORD is a robust/distinctive password.

Flush the privileges and exit from the console with:


Find out how to obtain and unpack SuiteCRM

The following step is to obtain and unpack the most recent model of SuiteCRM. Obtain the file with:


Unpack the file with:

sudo unzip -d /var/www/

Rename the newly created listing with:

sudo mv /var/www/SuiteCRM-8.0.0/ /var/www/suitecrm

Give the brand new listing the right possession and permissions with:

sudo chown -R www-data:www-data /var/www/suitecrm/
sudo chmod -R 755 /var/www/suitecrm/

Find out how to configure PHP and NGINX

The very first thing we should do is change the PHP add filesize max from 2MB to 20MB. Open the required file for enhancing with:

sudo nano /and many others/php/7.4/fpm/php.ini

In that file, change the road:

upload_max_filesize = 2M


upload_max_filesize = 20M

Restart PHP-FM and NGINX with the instructions:

sudo systemctl restart php7.4-fpm
sudo sytemctl restart nginx

Create an NGINX configuration file with:

sudo nano /and many others/nginx/conf.d/suitecrm.conf

In that file, paste the next (altering the server_name filed to the IP tackle of your internet hosting server):

server {
    pay attention 80;
    pay attention [::]:80;
    root /var/www/suitecrm;
    error_log /var/log/nginx/suitecrm.error;
    access_log /var/log/nginx/suitecrm.entry;
    client_max_body_size 20M;
    index index.php index.html index.htm index.nginx-debian.html;
    location / {

        # attempt to serve file instantly, fallback to app.php
        try_files $uri /index.php$is_args$args;

    location ~ .php$ {
        embrace snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;

        #Observe: For those who set up SuiteCRM on iRedMail server, you need to use the TCP socket as an alternative.

    location ~* ^/index.php {
        # try_files $uri =404;
        fastcgi_split_path_info ^(.+.php)(/.+)$;

        # NOTE: It's best to have "cgi.fix_pathinfo = 0;" in php.ini
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;

        #Observe: For those who set up SuiteCRM on iRedMail server, you need to use the TCP socket as an alternative.
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        embrace fastcgi_params;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 256 16k;
        fastcgi_busy_buffers_size 256k;
        fastcgi_temp_file_write_size 256k;

    # Do not log favicon
    location = /favicon.ico {
        log_not_found off;
        access_log off;

    # Do not log robots
    location = /robots.txt  {
        access_log off;
        log_not_found off;

    # Deny all makes an attempt to entry hidden recordsdata/folders akin to .htaccess, .htpasswd, .DS_Store (Mac), and many others...
    location ~ /. {
        deny all;
        access_log off;
        log_not_found off;

Reload NGINX with:

sudo systemctl reload nginx

Find out how to entry the SuiteCRM Internet installer

Open an online browser and level it to http://SERVER/set up.php (The place SERVER is the IP tackle or area of your internet hosting server). You’ll be greeted by a license settlement window. Settle for the license, and click on Subsequent. Click on Subsequent within the ensuing window (every thing ought to take a look at with the set up), and you will be greeted by the database configuration window (Determine A).

Determine A


Ensure to fill out all the crucial info, together with the Admin person bits.

One factor to notice within the database configuration part: You may want to vary the IP tackle of the internet hosting database server to localhost. The remainder of the data will come from the setup we created within the MariaDB console. 

While you’ve completed filling within the info, click on Subsequent. As soon as the set up completes, you will be greeted by the login display, the place you possibly can log in along with your newly created admin person. 

And that is it, you now have a working occasion of SuiteCRM to make use of. Take the time to customise the platform for your enterprise, and also you’re able to go.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the most recent tech recommendation for enterprise professionals from Jack Wallen.

Additionally see

Recent Articles


Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox