How to Install Silverstripe CMS on linuxmint 19
Installation Of Silverstripe CMS On Linuxmint 19
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.This tutorial covers the installation of SilverStripe CMS On Linuxmint 19.
Recruitment for Silverstripe CMS
Apache
Mysql
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-dev libmcrypt-dev php-pear)
Installation procedure
Check the Linuxmint version by using the following command
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 19 Tara
Release: 19
Codename: tara
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 MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.26-0ubuntu0.18.04.1 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database ssdb;
Query OK, 1 row affected (0.05 sec)
mysql> create user 'ssuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.09 sec)
mysql> grant all privileges on ssdb.* to 'ssuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
Previously download the SilverStripe installation package
root@linuxhelp:~# ls
Desktop SilverStripe-cms-v4.3.3.zip
Extract the downloaded package using unzip command
root@linuxhelp:~# 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/cache/.git/objects/pack/pack-8eef169ced9dd95b3fba09c168ddea37643e718f.idx
inflating: silverstripe/vendor/symfony/cache/.git/objects/pack/pack-8eef169ced9dd95b3fba09c168ddea37643e718f.pack
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:~# mv silverstripe /var/www/
Set the ownership and permission for SilverStripe by using the following command
root@linuxhelp:~# chown -R www-data.www-data /var/www/silverstripe
root@linuxhelp:~# chmod -R 755 /var/www/silverstripe
Configure the virtualhost for accessing the SilverStripe
root@linuxhelp:~# vim /etc/apache2/sites-available/silverstripe.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
documentroot /var/www/silverstripe
<directory /var/www/silverstripe>
allowoverride all
allow from all
</directory>
</virtualhost>
Disable the default site access
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the site access for accessing the SilverStripe
root@linuxhelp:~# a2ensite silverstripe.conf
Enabling site silverstripe.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the rewrite module
root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart the apache service by using the following command
root@linuxhelp:~# systemctl restart apache2
Switch to your browser and enter the domain name
Installation is in process.