========================================
Step 1: Install the LAMP environment
#sudo yum update
yum install httpd php php-common php-curl php-xml php-json php-mbstring php-zip php-imap pcre pcre-devel zlib-devel mariadb-server
systemctl start httpd
systemctl enable httpd
systemctl enable mariadb
mysql_secure_installation
After running the above security script, you will be asked to enter the root password.
Enter current password for root (enter for none):
Again, you will also be asked to answer the following questions by typing y to all questions to change the root password, delete anonymous users, close remote root login, delete test database and reload permission table:
change root password? [Y/n] n Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y Reload privilege tables now? [Y/n] y
Now you need to configure PHP to allow uploading at least 6MB of files. Open your PHP configuration file (I use winscp) ( /etc/php.ini ) with the editor of your choice, search for upload_max_filesize and set it.
upload_max_filesize = 50M
Although 128MB for PHP is enough for SuiteCRM, but you may increase it to higher amounts for faster processing of the application.
memory_limit = 2048M
Save the file and close it, then restart the HTTP server.
systemctl restart httpd
========================================
Step 2: Create a SuiteCRM database
In this step, you can create a database to store the data for suiteCRM. Access the MariaDB shell by running the following command (remember to use your own database name, user and password).
#mysql -u root -p
MariaDB [(none)]> CREATE DATABASE suitecrmdata;
MariaDB [(none)]> CREATE USER 'suitecrmuser'@'localhost' IDENTIFIED BY 'StrongPassword';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON suitecrmdata.* TO 'suitecrmuser'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit;
====================================
Step 3: Install and set up SuiteCRM
cd /var/www/html
#unzip v7.7.9
sudo mv SuiteCRM-7.7.9 suitecrm
sudo chown -R apache:apache suitecrm
sudo chmod -R 777 suitecrm [This permission does not understand, ask experts]
ls -ld suitecrm
Now open your web browser and enter the URL below to access the SuiteCRM Web Installer Wizard.
http://SERVER_IP/suitecrm ( Log in with a LAN computer. For example http://192.168.99.3/suitecrm )
Database Name suitecrmdata
Host Name: localhost
SuiteCRM Database Use: suitecrmuser
SuiteCRM Database User Password: StrongPassword
provide existing user
SuiteCRM Application Admin Name: admin
SuiteCRM Admin User Password: Set by yourself
Email Address: @.com