Nginx web server is now installed, and by default, its running on port 8. Check it using netstat or curl commands. I localhost. Make sure port 8. LISTEN status, and the curl command gives 2. HTTP status code in its output. Step 2 Install and configure PHP FPMIn this step, we will install and configure PHP FPM version 7 on the Cent. OS 7 server. By default, cent. OS doesnt provide repository for the new PHP version 7. So we need to add a different repository for PHP FPM 7 installation. Add new PHP 7 repository webtatic to the system using the rpm command. Uvh https mirror. Now install PHP 7 packages and extensions using yum command as shown below. If the installation is complete, edit the default php. Change the max upload file size for Suite. CRM installation to 1. MB. At the very least, Suite. CRM needs more than 6. MB. uploadmaxfilesize 1. MUncomment the following CGI line and change the value to 0. For the session path configuration, uncomment the line and change the path to varlibsession as shown below. Thats it. Save the changes and exit vim. Now create a new directory for the session path and change the ownership permissions of the directory to nginx user and group. R nginx nginx varlibphpsession. Next, we need to edit the php fpm configuration. For this, go to the etcphp fpm. Now change user and group line to nginx. Instead of using the system port, PHP FPM will be running under the unix socket file. Change the listen line listen varrunphp fpmphp fpm. Set the permission for Unix socket file and ownership of the socket file as shown below. Thats it. Save the changes and exit the editor. Now start PHP FPM service and add it to start automatically at the boot time. With this, PHP FPM is installed and running the socket file. You can check this using the netstat command netstat pl grep php. Make sure you see the php fpm. Step 3 Install and Configure Maria. DBIn this step, we will install Maria. DB, then start and enable it to launch everytime at system boot. And finally, we will create new database and user for Suite. CRM installation. Install mariadb from the Cent. OS repository using the following yum command. Start Maria. DB service and the enable it to launch the boot time using the commands below. So Maria. DB is now installed and running. Now, we need to configure the root password using mysqlsecureinstallation command. You will be asked about the configuration, type Y and press Enter. Set root password Yn YNew password Re enter new password Remove anonymous users Yn YDisallow root login remotely Yn YRemove test database and access to it Yn YReload privilege tables nowYn YSo Maria. DB root password has been configured. Next, we need to create a new database and a new user for Suite. CRM installation. For this, log in to the My. Star Plus Drama Serial Chehra Tera. SQL shell with user root and your password. Create a new database named suitecrmdb and a new user crmadmin with password hakase labs. All this can be done using the mysql queries below. CREATE DATABASE suitecrmdb CREATE USER crmadminlocalhost IDENTIFIED BY hakase labs. GRANT ALL PRIVILEGES ON suitecrmdb. TO crmadminlocalhost FLUSH PRIVILEGES So database configuration for Suite. CRM installation has been completed. Step 4 Download and Configure Suite. CRMIn this step, we will do some tasks for Suite. CRM installation. We will download the Suite. CRM source code, configure Firewalld, Generate new SSL Letsencrypt, and configure the nginx virtual host for Suite. CRM. So lets begin. Download Suite. CRMIf not already, install git on your system using the yum command below. Now go to the opt directory and download Suite. CRM code using git command as shown below. Suite. CRM. git suitecrm. After that, create a cache directory, change permissions for some files and directories in the suitecrm directory, and then change the owner of all suitecrm code to nginx user and group. R 7. 75 cache custom modules themes data upload configoverride. R optsuitecrm. So the suite. CRM code has been downloaded onto the server on optsuitecrm directory. Configure Firewalld. If you do not have Firewalld running on your server, install it using the following command. Start the service and enable it to run at the boot time. Next, we need to open new ports HTTP and HTTPS. Its used for Suite. CRM access. Run the following firewall cmd commands for this. Now reload firewalld rules using the following command. So now, new HTTP and HTTPS port have been added to the Firewalld. If you want to see detail configuration, run the command below. Generate New SSL Letsencrypt. In this tutorial, we will be using SSL for Suite. CRM access. And we will be using free SSL certificates from letsencrypt for that purpose. To generate new SSL letsencrypt certificates, we need to first install the letsencrypt command tool certbot to our system. Its available in the Cent. OS repository. Install certbot using the following yum command. When the certbot installation is complete, generate SSL certificate file for suite. CRM domain name suitecrm. Run the command below to generate SSL certificate files. You will be asked about the email address for renewing notification type your email and press Enter to continue. For the Letsencrypt TOS, type A to agree and press Enter again. And for the share email address query, type N and press Enter. When the certificate generation is complete, you will get the result as below. New certificate files are generated in the etcletsencryptlivedomain. Configure Suite. CRM Nginx Virtual host. Go to the Nginx configuration directory etcnginx, and create a new file suitecrm. Vim editor. cd etcnginxvim conf. There, paste Suite. CRM Nginx virtual host below. Server Config hakase labsserver listen 8. Automatically redirect to HTTPSreturn 3. Nginx SSL for Suite. CRMserver servername suitecrm. Enable http. 2listen 4.