How to install SuiteCRM in CentOS

To install SuiteCRM in CentOS

SuiteCRM is an open source Customer Relationship Management system based on SugarCRM. It is featured with rich, powerful, flexible and user-friendly. Installation of SuiteCRM in CentOS is discussed in this manual.

Installation of SuiteCRM

First configure the LAMP and install the httpd package with the following command.

[root@linuxhelp ~]# yum install httpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
.
.
.
  Installing : httpd-2.4.6-40.el7.centos.4.x86_64                           1/1 
  Verifying  : httpd-2.4.6-40.el7.centos.4.x86_64                           1/1 

Installed:
  httpd.x86_64 0:2.4.6-40.el7.centos.4                                          

Complete!


Once the httpd is installed, you need to install the MariaDB Server.

[root@linuxhelp ~]# yum install mariadb-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
.
.
.
  Installing : MariaDB-client-10.1.17-1.el7.centos.x86_64                   1/2 
  Installing : MariaDB-server-10.1.17-1.el7.centos.x86_64                   2/2 
  Verifying  : MariaDB-client-10.1.17-1.el7.centos.x86_64                   1/2 
  Verifying  : MariaDB-server-10.1.17-1.el7.centos.x86_64                   2/2 
Installed:
  MariaDB-server.x86_64 0:10.1.17-1.el7.centos                                  
Dependency Installed:
  MariaDB-client.x86_64 0:10.1.17-1.el7.centos                                  
Complete!


Next install the PHP and its required dependencies.

[root@linuxhelp ~]# yum install php php-gd php-mysql php-mbstring php-xml
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
.
.
.
Installed:
  php.x86_64 0:5.4.16-36.3.el7_2           php-gd.x86_64 0:5.4.16-36.3.el7_2    
  php-mbstring.x86_64 0:5.4.16-36.3.el7_2  php-mysql.x86_64 0:5.4.16-36.3.el7_2 
  php-xml.x86_64 0:5.4.16-36.3.el7_2      
Dependency Updated:
  php-bcmath.x86_64 0:5.4.16-36.3.el7_2    php-cli.x86_64 0:5.4.16-36.3.el7_2   
  php-common.x86_64 0:5.4.16-36.3.el7_2    php-pdo.x86_64 0:5.4.16-36.3.el7_2   
Complete!


Start and enable the MariaDB service.

[root@linuxhelp ~]# systemctl start mariadb.service
[root@linuxhelp ~]# systemctl enable mariadb.service


Next run the following command for MariaDB secure installation.

[root@linuxhelp ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we' ll need the current
password for the root user.  If you' ve just installed MariaDB, and
you haven' t set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

You already have a root password set, so you can safely answer ' n' .

Change the root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from ' localhost' .  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named ' test'  that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you' ve completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!


Edit the php.ini file and then change the lines according to your requirement.

[root@linuxhelp ~]# vim /etc/php.ini


Then create sample php file. to check the PHP installation.

[root@linuxhelp ~]# vim /var/www/html/phpinfo.php


Its time to restart the httpd service

[root@linuxhelp ~]# systemctl restart httpd.service
Download the latest version of SuiteCRM from the official site as shown below.

Downloading Suitecrm

Once the download completed, immediately move to download directory and unzip it.

[root@linuxhelp Downloads]# cd /home/user1/Download
[root@linuxhelp Downloads]# unzip SuiteCRM-7.7.4.zip


Copy the extracted directory to the new SuiteCRM directory.

[root@linuxhelp Downloads]# cp -R SuiteCRM-7.7.4 suitcrm
[root@linuxhelp Downloads]# ls
suitcrm SuiteCRM-7.7.4 SuiteCRM-7.7.4.zip


Again copy the new SuiteCRM directory to the “ /var/www/html/” directory.

[root@linuxhelp Downloads]# cp -R suitcrm /var/www/html/


Set selinux as “ enforcing” mode and then check it by using the below command.

[root@linuxhelp Downloads]# setenforce 0
[root@linuxhelp Downloads]# setenforce 1
[root@linuxhelp Downloads]# getenforce
Enforcing


Then set httpd content to “ /var/www/html/” directory.

[root@linuxhelp Downloads]# chcon -R -t httpd_sys_content_rw_t /var/www/html


Run the following command to “ on” the httpd connection.

[root@linuxhelp Downloads]# setsebool httpd_can_network_connect_db=on
[root@linuxhelp Downloads]# setsebool httpd_can_network_connect=on
[root@linuxhelp Downloads]# setsebool httpd_can_sendmail=on
[root@linuxhelp Downloads]# setsebool httpd_unified=on
[root@linuxhelp Downloads]#


Now SuiteCRM is ready to use. Open the web browser to accomplish the installation process.

Enter the URL http://< server_IP> /< Folder_name> in web browser.

Click on the accept check box and then trigger next.

It takes few minutes to check your system environment, then click on next option.

Enter the following credentials in the configuration page.

Here you need to create database for SuiteCRM.

Again open the SuiteCRM configuration page and enter all mandatory fields. Click on next option to proceed. Enter details in database configuration page

Once the configuration gets completed, Suite CRM login page will appear. Enter the following details and click login option.

Now you can access the SuiteCRM through its Dash Board.

Tag : CRM
Comment
lakanmawe
Jun 14 2017
Hi, What version of centOS and SuiteCRM you were using?
Add a comment
FAQ
Q
How can I create relationships in SuiteCRm?
A
Yes, creating relationships is another choice when importing CSV files.
Q
Does this module support reporting on custom modules ?
A
Yes, the module supports reporting on custom modules.
Q
I made a purchase and see a license key. What do I do next?
A
If an add-on requires a license key you'll see a key available under the Downloads section (go to Account and then find Downloads in the menu on the left). The add-on will have a mechanism av
Q
How do I change my credit card on a purchase?
A
To change your credit card associated to a purchase go to "Purchases" (on the Account menu). Next to each recurring purchase, you'll see an "Update Payment Info" link. Click the link and fill
Q
An update for an add-on has been released. How do I get access to it?
A
Log in Go to Account at the top On the menu on the left click on Purchases Make sure to open the order containing that purchase by clicking the View Order button. By default, the last order i