How to install the SuiteCRM Customer Resource Manager on Ubuntu Server

2 years ago 390

If your concern needs a Customer Resource Management platform, Jack Wallen has an open-source solution that conscionable mightiness acceptable the bill. Here, he'll locomotion you done installing SuiteCRM.


Image: Jirsak, Getty Images/iStockphoto

As your concern grows, you'll astir apt find yourself needing to negociate lawsuit relations. With specified a level disposable to your business, your unit tin amended negociate their clients, customers, opportunities, leads and overmuch more.

SEE: Checklist: How to negociate your backups (TechRepublic Premium)

What you'll need

You mightiness beryllium thinking, "Why not conscionable spell with a paid work for this?" If your fund is tight, you should see deploying specified a work connected your own. Not lone volition it prevention you money, but it'll besides support each of your important information in-house. In this time of changeless information breaches, having that information wrong the confines of your information halfway tin beryllium a much-needed information broad (so agelong arsenic your web is secure).

I'll locomotion you done the process of installing the open-source SuiteCRM platform, 1 that focuses connected sales, selling and services administration.

The lone things you request to marque this enactment are a moving lawsuit of Ubuntu Server and a idiosyncratic with sudo privileges. With those things astatine the ready, let's get to work.

How to instal NGINX and MariaDB

We're going to usage NGINX and MariaDB arsenic our web and database servers. To instal these pieces, log successful to your Ubuntu server and contented the command:

sudo apt instal nginx mariadb-server -y

Once those 2 pieces install, commencement and alteration the services with:

sudo systemctl commencement nginx sudo systemctl commencement mariadb sudo systemctl alteration nginx sudo systemctl alteration mariadb

Give the MariaDB basal idiosyncratic a password with the command:

sudo mysql_secure_installation

Make definite to usage a secure/unique password and past reply y to the remaining questions. Finally, instal the indispensable dependencies with:

sudo apt instal 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

How to make the database

Next, we'll make the database. Log successful to the MariaDB console with:

sudo mysql -u root

Create the database with:


Create the suitecrm database idiosyncratic with:

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

Where PASSWORD is simply a strong/unique password.

Flush the privileges and exit from the console with:


How to download and unpack SuiteCRM

The adjacent measurement is to download and unpack the latest mentation of SuiteCRM. Download the record with:


Unpack the record with:

sudo unzip -d /var/www/

Rename the recently created directory with:

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

Give the caller directory the due ownership and permissions with:

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

How to configure PHP and NGINX

The archetypal happening we indispensable bash is alteration the PHP upload filesize max from 2MB to 20MB. Open the indispensable record for editing with:

sudo nano /etc/php/7.4/fpm/php.ini

In that file, alteration the line:

upload_max_filesize = 2M


upload_max_filesize = 20M

Restart PHP-FM and NGINX with the commands:

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

Create an NGINX configuration record with:

sudo nano /etc/nginx/conf.d/suitecrm.conf

In that file, paste the pursuing (changing the server_name filed to the IP code of your hosting server):

server { perceive 80; perceive [::]:80; server_name; basal /var/www/suitecrm; error_log /var/log/nginx/suitecrm.error; access_log /var/log/nginx/suitecrm.access; client_max_body_size 20M; scale index.php index.html index.htm index.nginx-debian.html; determination / { # effort to service record directly, fallback to app.php try_files $uri /index.php$is_args$args; } determination ~ \.php$ { see snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.4-fpm.sock; #Note: If you instal SuiteCRM connected iRedMail server, you should usage the TCP socket instead. #fastcgi_pass } determination ~* ^/index.php { # try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; # NOTE: You should person "cgi.fix_pathinfo = 0;" successful php.ini fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; #Note: If you instal SuiteCRM connected iRedMail server, you should usage the TCP socket instead. #fastcgi_pass fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; see fastcgi_params; fastcgi_buffer_size 128k; fastcgi_buffers 256 16k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; } # Don't log favicon determination = /favicon.ico { log_not_found off; access_log off; } # Don't log robots determination = /robots.txt { access_log off; log_not_found off; } # Deny each attempts to entree hidden files/folders specified arsenic .htaccess, .htpasswd, .DS_Store (Mac), etc... determination ~ /\. { contradict all; access_log off; log_not_found off; } }

Reload NGINX with:

sudo systemctl reload nginx

How to entree the SuiteCRM Web installer

Open a web browser and constituent it to http://SERVER/install.php (Where SERVER is the IP code oregon domain of your hosting server). You volition beryllium greeted by a licence statement window. Accept the license, and click Next. Click Next successful the resulting model (everything should cheque retired with the installation), and you'll beryllium greeted by the database configuration model (Figure A).

Figure A


Make definite to capable retired each of the indispensable information, including the Admin idiosyncratic bits.

One happening to enactment successful the database configuration section: You'll request to alteration the IP code of the hosting database server to localhost. The remainder of the accusation volition travel from the setup we created successful the MariaDB console. 

When you've finished filling successful the information, click Next. Once the installation completes, you'll beryllium greeted by the login screen, wherever you tin log successful with your recently created admin user. 

And that's it, you present person a moving lawsuit of SuiteCRM to use. Take the clip to customize the level for your business, and you're acceptable to go.

Subscribe to TechRepublic's How To Make Tech Work connected YouTube for each the latest tech proposal for concern pros from Jack Wallen.

Open Source Weekly Newsletter

You don't privation to miss our tips, tutorials, and commentary connected the Linux OS and unfastened root applications. Delivered Tuesdays

Sign up today

Also spot

Read Entire Article