How to install SuiteCRM with Nginx on CentOS 6.9
To install SuiteCRM with Nginx on CentOS 6.9
SuiteCRM is an open source Customer Relationship Management system based on SugarCRM. It is featured with rich, powerful, flexible and user-friendly.It is written in PHP and uses MySQL / MariaDB to store its data.It consists of a few modules such as products, quotes, contracts, invocies, PDF templates, Events, Portal, outlook plugins and much more. This tutorial covers the installation procedure of SuiteCRM with Nginx on CentOS 6.9.
Pre-Requisite
Before beginning the installation procedure, Check whether the LEMP environment is set in the target system. Create a MySQL database for the SuiteCRM to work on and create a user in the database and grant all privileges to the user.
Installation procedure
To proceed with the installation procedure, enter into the Nginx HTML location by running the following command.
[root@linuxhelp1 ~]# cd /usr/share/nginx/html/
Next install the git tool by running the following yum command and press y to continue with the installation procedure.
[root@linuxhelp1 html]# yum -y install git
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.vbctv.in
* epel: ae.mirror.rasanegar.com
* extras: mirror.vbctv.in
.
.
Dependency Installed:
perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-9.el6_9
Complete!
Download the SuiteCRM package using git clone command.
root@linuxhelp1 html]# git clone https://github.com/salesagility/SuiteCRM.git
Initialized empty Git repository in /usr/share/nginx/html/SuiteCRM/.git/
remote: Counting objects: 84729, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 84729 (delta 2), reused 0 (delta 0), pack-reused 84719
Receiving objects: 100% (84729/84729), 74.86 MiB | 428 KiB/s, done.
Resolving deltas: 100% (52508/52508), done.
Edit the configuration file of php using vim editor and make the following changes in the timezone. Save and exit the file.
[root@linuxhelp1 html]# vim /etc/php.ini
date.timezone = Asia/Kolkata
Edit the configuration file of php-fpm and make the following changes in the file as shown below. Save and exit the file.
[root@linuxhelp1 html]# vim /etc/php-fpm.d/www.conf
listen = /var/run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx
Edit the configuration file of Nginx named default.conf using vim editor and enter the following contents in the file. Save and exit the file.
[root@linuxhelp1 html]# vim /etc/nginx/conf.d/default.conf
server {
listen 80 default_server
listen [::]:80 default_server
server_name _
root /usr/share/nginx/html
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf
index index.html index.php
location ~ \.php {
fastcgi_index index.php
fastcgi_split_path_info ^(.+\.php)(.*)$
include /etc/nginx/fastcgi_params
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name
}
error_page 404 /404.html
location = /40x.html {
}
error_page 500 502 503 504 /50x.html
location = /50x.html {
}
}
Change the ownership of php-fpm file.
[root@linuxhelp1 html]# chown nginx:nginx /var/run/php-fpm/php-fpm.sock
Change the permission of file in Nginx location.
[root@linuxhelp1 html]# chown -R nginx:nginx /usr/share/nginx
Restart the php-fpm service by running the following command.
[root@linuxhelp1 html]# service php-fpm restart
Stopping php-fpm: [ OK ]
Starting php-fpm: [ OK ]
Restart the nginx service by executing the following command.
[root@linuxhelp1 html]# service nginx restart
Stopping nginx: [ OK ]
Starting nginx: [ OK ]
Switch over to the browser and give the URL as http://machineip /SuiteCRM. The license page of the SuiteCRM appears on the screen. Click " I Accept" option.
The next window contains a list of System environment checks and click next.
Next enter the database details and click next.
You can also choose to configure more options as shown below and click next.
The installation is in progress and the user has to wait for the installation to complete.
The admin login page of the SuiteCRM is opened. Enter the admin credentials and click login.
The Admin page and dashboard of SuiteCRM is shown as below.
The installation procedure of SuiteCRM with Nginx on CentOS 6.9 is done successfully.
Comments ( 0 )
No comments available