How to Install SilverStripe CMS on CentOS 7.6

To Install SilverStripe CMS On CentOS 7.6

Requirements for SilverStripe CMS:

Apache

Mariadb

Php and Its modules

php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-mcrypt

Installation procedure

Check the Centos version by using the following command

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64

Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database ssdb;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> create user 'ssuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]> grant all privileges on ssdb.* to 'ssuser'@localhost;
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> Ctrl-C -- exit!
Aborted

Previously download the SilverStripe installation package

[root@linuxhelp ~]# cd Downloads
[root@linuxhelp Downloads]# ll
total 350312
-rwx------ 1 1002 513 358718630 May 22 00:02 SilverStripe-CMS-v4.3.3.zip

Extract the downloaded package using unzip command

[root@linuxhelp Downloads]# unzip SilverStripe-CMS-v4.3.3.zip -d SilverStripe
Archive:  SilverStripe-CMS-v4.3.3.zip
  inflating: SilverStripe/composer.lock  
  inflating: SilverStripe/composer.phar  
   creating: SilverStripe/app/
  inflating: SilverStripe/app/_config.php  
   creating: SilverStripe/app/_config/
.
.
 inflating: SilverStripe/vendor/symfony/translation/.git/objects/pack/pack-858ba734a2e94002da4edc43902cddcc7dc56476.idx  
  inflating: SilverStripe/vendor/symfony/translation/.git/objects/pack/pack-858ba734a2e94002da4edc43902cddcc7dc56476.pack  
  inflating: SilverStripe/vendor/symfony/config/.git/objects/pack/pack-818008b85ec396cd1ff2b0bc92c53a41ec11cec0.idx  
  inflating: SilverStripe/vendor/symfony/config/.git/objects/pack/pack-818008b85ec396cd1ff2b0bc92c53a41ec11cec0.pack

Move the SilverStripe directory to apache root directory

 [root@linuxhelp Downloads]# mv SilverStripe /var/www/

Set the ownership and permission for SilverStripe by using the following command

 [root@linuxhelp Downloads]# chown -R apache:apache /var/www/SilverStripe
 [root@linuxhelp Downloads]# chmod -R 755 /var/www/SilverStripe

Configure the virtualhost for accessing the SilverStripe

[root@linuxhelp Downloads]# vim /etc/httpd/conf.d/SilverStripe.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        documentroot /var/www/SilverStripe
<directory /var/www/SilverStripe>
allowoverride all
allow from all
</directory>
</virtualhost>

Configure the php.ini file

 [root@linuxhelp Downloads]# vim /etc/php.ini
date.timezone = Asia/Kolkata

Restart the apache service by using the following command

[root@linuxhelp Downloads]# systemctl restart httpd

Switch to your browser and enter the domain name Check the requirements Configure the database details Create your admin credentials Click the installation button Installation is in process After the installation you will see the following page Enter your admin credentials to login SilverStripe CMS Click to CMS to login the admin page This is the dashboard of SilverStripe CMS With this, the method to install silver stripe on Centos 7.6 comes to an end.

FAQ
Q
How to get the source of the Silver Stripe?
A
Get the source of the Silver Stripe, use the following link as given below "https://www.silverstripe.org/download/"
Q
How to configure the Host entry in SilverStripe?
A
Enter into #vim /etc/hosts

Q
What are their basic requirements for SilverStripe?
A
Requirements for this as below, LAMP Setup -Apache -Mysql -PHP 7
Q
What are the php modules required for SilverStripe?
A
These are the modules required for SilverStripe

php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear
Q
What is a Silver Stripe?
A
SilverStripe is a free and open source Content Management System (CMS) and Framework for creating and maintaining websites and web applications. It provides an out of the box web-based administration panel that enables users to make modifications to parts of the website, which includes a WYSIWYG website editor