Saturday, 15 June 2019

SuiteCRM Installation on CentOS 7 Server

SuiteCRM Installation on CentOS 7 Server

SuiteCRM is a free, open-source and community supported fork of popular proprietary customer relationship management software SugarCRM. SuiteCRM project was started when SugarCRM decided to stop development of its open-source version in Feb 2014. SuitCRM has various sales, marketing and customer support and automation features. SuiteCRM is a free alternative to Salesforce, MS Dynamics, SugarCRM, etc.

In this article, we will perform SuiteCRM 7.11 installation on CentOS 7 server. First, we will install and configure the SuiteCRM prerequisites and then we will use its web-based installer to configure SuiteCRM 7.11 on CentOS 7 server.

 

This Article Provides:

     

    SuiteCRM Features:

    SuiteCRM's functionality includes sales-force automation, marketing campaigns, customer support, collaboration, Mobile CRM, Social CRM and reporting.

    For complete detail about SuiteCRM features visit their official website.

     

    System Requirements:

    For complete list of prerequisites please see Compatibility Matrix

     

    Environment Specification:

    We have configured a CentOS 7 based virtual machine with following specifications.

    • Hostname - suitecrm-01.example.com
    • IP Address - 192.168.116.175 / 24
    • Operating System - CentOS 7.6
    • Database - MariaDB 5.5
    • Web Server - Apache 2.4
    • PHP - PHP 7.2

     

    Installing SuiteCRM Prerequisites - MariaDB:

    Connect with suitecrm-01.example.com using ssh as root user.

    MariaDB 5.5 database server is supported by SuiteCRM 7.11, we can easily install it using yum command because it is available via base yum repository.

    If you want to install a latest version of MariaDB database server then you can follow our previous article Installing MariaDB 10.3 Server on CentOS 7.

    [root@suitecrm-01 ~]# yum install -y mariadb-server ... Installed: mariadb-server.x86_64 1:5.5.60-1.el7_5 Dependency Installed: mariadb.x86_64 1:5.5.60-1.el7_5 perl.x86_64 4:5.16.3-294.el7_6 perl-Carp.noarch 0:1.26-244.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBD-MySQL.x86_64 0:4.023-6.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-Encode.x86_64 0:2.51-7.el7 perl-Exporter.noarch 0:5.68-3.el7 perl-File-Path.noarch 0:2.09-2.el7 perl-File-Temp.noarch 0:0.23.01-3.el7 perl-Filter.x86_64 0:1.49-3.el7 perl-Getopt-Long.noarch 0:2.40-3.el7 perl-HTTP-Tiny.noarch 0:0.033-3.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PathTools.x86_64 0:3.40-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 perl-Pod-Escapes.noarch 1:1.04-294.el7_6 perl-Pod-Perldoc.noarch 0:3.20-4.el7 perl-Pod-Simple.noarch 1:3.28-4.el7 perl-Pod-Usage.noarch 0:1.63-3.el7 perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 perl-Socket.x86_64 0:2.010-4.el7 perl-Storable.x86_64 0:2.45-3.el7 perl-Text-ParseWords.noarch 0:3.29-4.el7 perl-Time-HiRes.x86_64 4:1.9725-3.el7 perl-Time-Local.noarch 0:1.2300-2.el7 perl-constant.noarch 0:1.27-2.el7 perl-libs.x86_64 4:5.16.3-294.el7_6 perl-macros.x86_64 4:5.16.3-294.el7_6 perl-parent.noarch 1:0.225-244.el7 perl-podlators.noarch 0:2.5.1-3.el7 perl-threads.x86_64 0:1.87-4.el7 perl-threads-shared.x86_64 0:1.43-6.el7 Complete!

    Enable and start MariaDB service.

    [root@suitecrm-01 ~]# systemctl enable mariadb.service Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service. [root@suitecrm-01 ~]# systemctl start mariadb.service

    Configure MariaDB server as follows.

    [root@suitecrm-01 ~]# 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. Set 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!

     

    Installing SuiteCRM Prerequisites - Apache Web Server:

    Install Apache Web Server using yum command.

    [root@suitecrm-01 ~]# yum install -y httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp3.isra.edu.pk * extras: mirrors.ges.net.pk * updates: ftp3.isra.edu.pk Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.4.6-89.el7.centos will be installed --> Processing Dependency: httpd-tools = 2.4.6-89.el7.centos for package: httpd-2.4.6-89.el7.centos.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-89.el7.centos.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-89.el7.centos.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-89.el7.centos.x86_64 --> Running transaction check ---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed ---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed ---> Package httpd-tools.x86_64 0:2.4.6-89.el7.centos will be installed ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: httpd x86_64 2.4.6-89.el7.centos updates 2.7 M Installing for dependencies: apr x86_64 1.4.8-3.el7_4.1 base 103 k apr-util x86_64 1.5.2-6.el7 base 92 k httpd-tools x86_64 2.4.6-89.el7.centos updates 90 k mailcap noarch 2.1.41-2.el7 base 31 k Transaction Summary ================================================================================ Install 1 Package (+4 Dependent packages) Total download size: 3.0 M Installed size: 10 M Downloading packages: (1/5): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:01 (2/5): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:02 (3/5): apr-1.4.8-3.el7_4.1.x86_64.rpm | 103 kB 00:02 (4/5): httpd-tools-2.4.6-89.el7.centos.x86_64.rpm | 90 kB 00:02 (5/5): httpd-2.4.6-89.el7.centos.x86_64.rpm | 2.7 MB 00:39 -------------------------------------------------------------------------------- Total 78 kB/s | 3.0 MB 00:39 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : apr-1.4.8-3.el7_4.1.x86_64 1/5 Installing : apr-util-1.5.2-6.el7.x86_64 2/5 Installing : httpd-tools-2.4.6-89.el7.centos.x86_64 3/5 Installing : mailcap-2.1.41-2.el7.noarch 4/5 Installing : httpd-2.4.6-89.el7.centos.x86_64 5/5 Verifying : httpd-tools-2.4.6-89.el7.centos.x86_64 1/5 Verifying : mailcap-2.1.41-2.el7.noarch 2/5 Verifying : httpd-2.4.6-89.el7.centos.x86_64 3/5 Verifying : apr-1.4.8-3.el7_4.1.x86_64 4/5 Verifying : apr-util-1.5.2-6.el7.x86_64 5/5 Installed: httpd.x86_64 0:2.4.6-89.el7.centos Dependency Installed: apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-89.el7.centos mailcap.noarch 0:2.1.41-2.el7 Complete!

    Enable and start httpd.service.

    [root@suitecrm-01 ~]# systemctl enable httpd.service Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. [root@suitecrm-01 ~]# systemctl start httpd.service

    Allow Apache web service in Linux firewall.

    [root@suitecrm-01 ~]# firewall-cmd --permanent --add-service=http success [root@suitecrm-01 ~]# firewall-cmd --reload success

     

    Installing SuiteCRM Prerequisites - PHP:

    SuiteCRM 7.11 supports PHP 7.1 or later, which is not available in default yum repositories.

    Therefore, we need to add a third party yum repository like webtatic to install a latest version of PHP.

    But first we need to add EPEL (Extra Packages for Enterprise Linux) yum repository.

    [root@suitecrm-01 ~]# yum install -y epel-release.noarch Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp3.isra.edu.pk * extras: mirrors.ges.net.pk * updates: ftp3.isra.edu.pk Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-11 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: epel-release noarch 7-11 extras 15 k Transaction Summary ================================================================================ Install 1 Package Total download size: 15 k Installed size: 24 k Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-11.noarch 1/1 Verifying : epel-release-7-11.noarch 1/1 Installed: epel-release.noarch 0:7-11 Complete!

    Add webtatic yum repository using following commands.

    [root@suitecrm-01 ~]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm warning: /var/tmp/rpm-tmp.ztLHoc: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:webtatic-release-7-3 ################################# [100%]

    Build yum cache for newly added repositories.

    [root@suitecrm-01 ~]# yum makecache fast Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.5 kB 00:00 * base: ftp3.isra.edu.pk * epel: mirror.xeonbd.com * extras: mirrors.ges.net.pk * updates: ftp3.isra.edu.pk * webtatic: uk.repo.webtatic.com base | 3.6 kB 00:00 epel | 5.3 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 webtatic | 3.6 kB 00:00 (1/5): webtatic/x86_64/group_gz | 448 B 00:01 (2/5): epel/x86_64/group_gz | 88 kB 00:01 (3/5): webtatic/x86_64/primary_db | 160 kB 00:03 (4/5): epel/x86_64/updateinfo | 977 kB 00:11 (5/5): epel/x86_64/primary_db | 6.8 MB 00:51 Metadata Cache Created

    Install PHP and relevant packages using yum command.

    [root@suitecrm-01 ~]# yum install -y php72w php72w-common php72w-xml php72w-mysql php72w-mbstring php72w-imap php72w-gd php-curl php-json php-zip Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp3.isra.edu.pk * epel: mirror.xeonbd.com * extras: ftp3.isra.edu.pk * updates: ftp3.isra.edu.pk * webtatic: uk.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package mod_php72w.x86_64 0:7.2.17-1.w7 will be installed ---> Package php72w-common.x86_64 0:7.2.17-1.w7 will be installed ---> Package php72w-gd.x86_64 0:7.2.17-1.w7 will be installed ---> Package php72w-imap.x86_64 0:7.2.17-1.w7 will be installed ---> Package php72w-mbstring.x86_64 0:7.2.17-1.w7 will be installed ---> Package php72w-mysql.x86_64 0:7.2.17-1.w7 will be installed --> Processing Dependency: php72w-pdo(x86-64) for package: php72w-mysql-7.2.17-1.w7.x86_64 ---> Package php72w-xml.x86_64 0:7.2.17-1.w7 will be installed --> Running transaction check ---> Package php72w-pdo.x86_64 0:7.2.17-1.w7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mod_php72w x86_64 7.2.17-1.w7 webtatic 3.1 M php72w-common x86_64 7.2.17-1.w7 webtatic 1.3 M php72w-gd x86_64 7.2.17-1.w7 webtatic 139 k php72w-imap x86_64 7.2.17-1.w7 webtatic 49 k php72w-mbstring x86_64 7.2.17-1.w7 webtatic 586 k php72w-mysql x86_64 7.2.17-1.w7 webtatic 82 k php72w-xml x86_64 7.2.17-1.w7 webtatic 124 k Installing for dependencies: php72w-pdo x86_64 7.2.17-1.w7 webtatic 90 k Transaction Summary ================================================================================ Install 7 Packages (+1 Dependent package) Total download size: 5.4 M Installed size: 28 M Downloading packages: (1/8): php72w-imap-7.2.17-1.w7.x86_64.rpm | 49 kB 00:03 (2/8): php72w-gd-7.2.17-1.w7.x86_64.rpm | 139 kB 00:05 (3/8): php72w-mysql-7.2.17-1.w7.x86_64.rpm | 82 kB 00:01 (4/8): php72w-mbstring-7.2.17-1.w7.x86_64.rpm | 586 kB 00:04 (5/8): php72w-pdo-7.2.17-1.w7.x86_64.rpm | 90 kB 00:00 (6/8): php72w-common-7.2.17-1.w7.x86_64.rpm | 1.3 MB 00:11 (7/8): php72w-xml-7.2.17-1.w7.x86_64.rpm | 124 kB 00:01 (8/8): mod_php72w-7.2.17-1.w7.x86_64.rpm | 3.1 MB 00:24 -------------------------------------------------------------------------------- Total 223 kB/s | 5.4 MB 00:24 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : php72w-common-7.2.17-1.w7.x86_64 1/8 Installing : php72w-pdo-7.2.17-1.w7.x86_64 2/8 Installing : php72w-mysql-7.2.17-1.w7.x86_64 3/8 Installing : php72w-imap-7.2.17-1.w7.x86_64 4/8 Installing : php72w-gd-7.2.17-1.w7.x86_64 5/8 Installing : php72w-mbstring-7.2.17-1.w7.x86_64 6/8 Installing : php72w-xml-7.2.17-1.w7.x86_64 7/8 Installing : mod_php72w-7.2.17-1.w7.x86_64 8/8 Verifying : php72w-imap-7.2.17-1.w7.x86_64 1/8 Verifying : php72w-common-7.2.17-1.w7.x86_64 2/8 Verifying : php72w-gd-7.2.17-1.w7.x86_64 3/8 Verifying : php72w-mysql-7.2.17-1.w7.x86_64 4/8 Verifying : mod_php72w-7.2.17-1.w7.x86_64 5/8 Verifying : php72w-mbstring-7.2.17-1.w7.x86_64 6/8 Verifying : php72w-pdo-7.2.17-1.w7.x86_64 7/8 Verifying : php72w-xml-7.2.17-1.w7.x86_64 8/8 Installed: mod_php72w.x86_64 0:7.2.17-1.w7 php72w-common.x86_64 0:7.2.17-1.w7 php72w-gd.x86_64 0:7.2.17-1.w7 php72w-imap.x86_64 0:7.2.17-1.w7 php72w-mbstring.x86_64 0:7.2.17-1.w7 php72w-mysql.x86_64 0:7.2.17-1.w7 php72w-xml.x86_64 0:7.2.17-1.w7 Dependency Installed: php72w-pdo.x86_64 0:7.2.17-1.w7 Complete!

    As required by SuiteCRM server, increase the upload_max_filesize in php.ini file.

    [root@suitecrm-01 ~]# vi /etc/php.ini

    Find and set the upload_max_filesize as follows.

    upload_max_filesize = 8M

    Restart httpd.service to reload configurations.

    [root@suitecrm-01 ~]# systemctl restart httpd.service

     

    Install SuiteCRM Prerequisites - Other Packages:

    We required a few more packages for installation of SuiteCRM 7.11 on CentOS 7.

    Therefore, we are installing these packages using yum command.

    [root@suitecrm-01 ~]# yum install -y pcre pcre-devel zlib-devel gd wget policycoreutils-python unzip Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp3.isra.edu.pk * epel: mirror.xeonbd.com * extras: ftp3.isra.edu.pk * updates: ftp3.isra.edu.pk * webtatic: uk.repo.webtatic.com Package pcre-8.32-17.el7.x86_64 already installed and latest version Package gd-2.0.35-26.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed ---> Package policycoreutils-python.x86_64 0:2.5-29.el7_6.1 will be installed ---> Package unzip.x86_64 0:6.0-19.el7 will be installed ---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed ---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: pcre-devel x86_64 8.32-17.el7 base 480 k policycoreutils-python x86_64 2.5-29.el7_6.1 updates 456 k unzip x86_64 6.0-19.el7 base 170 k wget x86_64 1.14-18.el7_6.1 updates 547 k zlib-devel x86_64 1.2.7-18.el7 base 50 k Transaction Summary ================================================================================ Install 5 Packages Total download size: 1.7 M Installed size: 5.1 M Downloading packages: (1/5): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:05 (2/5): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:05 (3/5): policycoreutils-python-2.5-29.el7_6.1.x86_64.rpm | 456 kB 00:05 (4/5): unzip-6.0-19.el7.x86_64.rpm | 170 kB 00:05 (5/5): wget-1.14-18.el7_6.1.x86_64.rpm | 547 kB 00:09 -------------------------------------------------------------------------------- Total 172 kB/s | 1.7 MB 00:09 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : zlib-devel-1.2.7-18.el7.x86_64 1/5 Installing : policycoreutils-python-2.5-29.el7_6.1.x86_64 2/5 Installing : unzip-6.0-19.el7.x86_64 3/5 Installing : wget-1.14-18.el7_6.1.x86_64 4/5 Installing : pcre-devel-8.32-17.el7.x86_64 5/5 Verifying : pcre-devel-8.32-17.el7.x86_64 1/5 Verifying : wget-1.14-18.el7_6.1.x86_64 2/5 Verifying : unzip-6.0-19.el7.x86_64 3/5 Verifying : policycoreutils-python-2.5-29.el7_6.1.x86_64 4/5 Verifying : zlib-devel-1.2.7-18.el7.x86_64 5/5 Installed: pcre-devel.x86_64 0:8.32-17.el7 policycoreutils-python.x86_64 0:2.5-29.el7_6.1 unzip.x86_64 0:6.0-19.el7 wget.x86_64 0:1.14-18.el7_6.1 zlib-devel.x86_64 0:1.2.7-18.el7 Complete!

     

    Installing SuiteCRM on CentOS 7:

    SuiteCRM 7.11 is available to download from SuiteCRM Official website.

    [root@suitecrm-01 ~]# cd /tmp [root@suitecrm-01 tmp]# wget https://suitecrm.com/files/162/SuiteCRM-7.11/435/SuiteCRM-7.11.5.zip --2019-06-14 21:04:57-- https://suitecrm.com/files/162/SuiteCRM-7.11/435/SuiteCRM-7.11.5.zip Resolving suitecrm.com (suitecrm.com)... 104.248.173.173 Connecting to suitecrm.com (suitecrm.com)|104.248.173.173|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: /suitecrm/files/162/SuiteCRM-7.11/435/SuiteCRM-7.11.5.zip [following] --2019-06-14 21:05:00-- https://suitecrm.com/suitecrm/files/162/SuiteCRM-7.11/435/SuiteCRM-7.11.5.zip Reusing existing connection to suitecrm.com:443. HTTP request sent, awaiting response... 303 See other Location: https://suitecrm.com/suitecrm/index.php?option=com_dropfiles&format=&task=frontfile.download&catid=162&id=435&Itemid=1000000000000 [following] --2019-06-14 21:05:00-- https://suitecrm.com/suitecrm/index.php?option=com_dropfiles&format=&task=frontfile.download&catid=162&id=435&Itemid=1000000000000 Reusing existing connection to suitecrm.com:443. HTTP request sent, awaiting response... 200 OK Length: 58853232 (56M) [application/octet-stream] Saving to: âSuiteCRM-7.11.5.zip.1â 100%[======================================>] 58,853,232 442KB/s in 2m 46s 2019-06-14 21:07:47 (345 KB/s) - âSuiteCRM-7.11.5.zip.1â saved [58853232/58853232]

    Extract downloaded file in Apache document root using unzip command.

    [root@suitecrm-01 tmp]# unzip SuiteCRM-7.11.5.zip -d /var/www/html/ ... inflating: /var/www/html/SuiteCRM-7.11.5/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum/CaseInsensitive.php creating: /var/www/html/SuiteCRM-7.11.5/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Text/ inflating: /var/www/html/SuiteCRM-7.11.5/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Text/CaseInsensitive.php finishing deferred symbolic links: /var/www/html/SuiteCRM-7.11.5/vendor/bin/update-psl -> ../jeremykendall/php-domain-parser/bin/update-psl /var/www/html/SuiteCRM-7.11.5/vendor/bin/parse -> ../jeremykendall/php-domain-parser/bin/parse /var/www/html/SuiteCRM-7.11.5/vendor/bin/generate-defuse-key -> ../defuse/php-encryption/bin/generate-defuse-key /var/www/html/SuiteCRM-7.11.5/vendor/bin/validate-json -> ../justinrainbow/json-schema/bin/validate-json /var/www/html/SuiteCRM-7.11.5/vendor/bin/robo -> ../consolidation/robo/robo /var/www/html/SuiteCRM-7.11.5/vendor/bin/release -> ../consolidation/self-update/scripts/release

    Rename /var/www/html/SuiteCRM-7.11.5 to a relatively simple name to access it conveniently via web browser.

    [root@suitecrm-01 tmp]# cd /var/www/html/ [root@suitecrm-01 html]# mv SuiteCRM-7.11.5/ suitecrm

    Adjust file permissions on /var/www/html/suitecrm directory.

    [root@suitecrm-01 html]# cd suitecrm/ [root@suitecrm-01 suitecrm]# chown -R apache:apache . [root@suitecrm-01 suitecrm]# sudo chmod -R 755 . [root@suitecrm-01 suitecrm]# chmod -R 775 cache custom modules themes data upload [root@suitecrm-01 suitecrm]# chmod 775 config_override.php 2>/dev/null

    Since we are configuring SuiteCRM server without disabling the SELinux, therefore we have to set proper SELinux file contexts according to SuiteCRM server requirements.

    Adjust SELinux file contexts as required by SuiteCRM installer.

    [root@suitecrm-01 suitecrm]# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/custom(/.*)?' [root@suitecrm-01 suitecrm]# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/cache(/.*)?' [root@suitecrm-01 suitecrm]# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/modules(/.*)?' [root@suitecrm-01 suitecrm]# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/upload(/.*)?' [root@suitecrm-01 suitecrm]# restorecon -R .

    Create config.php and make it writable by apache user.

    [root@suitecrm-01 suitecrm]# touch config.php [root@suitecrm-01 suitecrm]# chown apache:apache config.php [root@suitecrm-01 suitecrm]# chmod 775 config.php [root@suitecrm-01 suitecrm]# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/config.php' [root@suitecrm-01 suitecrm]# restorecon -R .

    Create .htaccess file and make it writable by apache user.

    [root@suitecrm-01 suitecrm]# touch .htaccess [root@suitecrm-01 suitecrm]# chown apache:apache .htaccess [root@suitecrm-01 suitecrm]# chmod 775 .htaccess [root@suitecrm-01 suitecrm]# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/.htaccess' [root@suitecrm-01 suitecrm]# restorecon -R .

    Since, SuiteCRM is deployed on Apache web server. We can now access it to run SuiteCRM setup.

    Browse URL http://suitecrm-01.example.com/suitecrm/install.php using a client's browser.

    01-suitecrm-license

    Accept the GNU GPL License and click on Next.

    02-suitecrm-system-environment

    If you have performed all the configurations correctly, then you won't see any warning on this page. Otherwise, you have to resolve those warnings one by one.

    Note down the SuiteCRM scheduler configurations, as mentioned in this page. We will configure it after SuiteCRM installation.

    Click on Next.

    03-suitecrm-database-site-configuration

    We are now at Database and Site Configurations page. We have defined database name, database user and SuiteCRM Admin’s password here.

    A MariaDB Database and a database user will be created by SuiteCRM installer.

    Click on Next.

    04-suitecrm-install-progress

    05-suitecrm-installation-completed

    Setup has been completed.

    Click on Next.

    06-suitecrm-user-login

    Login as admin user.

    07-suitecrm-dashboard

    You are now reached at the dashboard of SuiteCRM.

    Configure SuiteCRM scheduler as follows.

    [root@suitecrm-01 suitecrm]# crontab -e -u apache

    and add following line.

    * * * * * cd /var/www/html/suitecrm; php -f cron.php > /dev/null 2>&1

    We have successfully installed SuiteCRM 7.11 on CentOS 7.

    To start using SuiteCRM, we recommend you to read SugarCRM A Complete Guide - 2019 Edition. Although this book is about SugarCRM, but can be used for SuiteCRM as well.

    SuiteCRM Installation on CentOS 7 Server


    YOU MIGHT ALSO LIKE:

    No comments:

    Post a Comment