How to Install SilverStripe CMS on Ubuntu 19.04
Installation of Silverstripe Cms On Ubuntu 19.04
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 Ubuntu 19.04
Requirements 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 Ubuntu version by using the following command
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
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 6
Server version: 5.7.26-0ubuntu0.19.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.33 sec)
mysql> create user 'ssuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (1.15 sec)
mysql> grant all privileges on ssdb.* to 'ssuser'@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.17 sec)
mysql> exit
Bye
Previously download the SilverStripe installation package
root@linuxhelp:~# ls
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 /app/_config/theme.yml
inflating: SilverStripe /app/_config/mysite.yml
inflating: SilverStripe /app/.htaccess
creating: SilverStripe /app/src/
.
.
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
root@linuxhelp:~# vim /etc/php/7.1/apache2/php.ini
date.timezone = Asia/Kolkata
Restart the apache service
root@linuxhelp:~# systemctl restart apache2
Check the requirements
Click the installation button
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