How to intall SilverStripe CMS 4.2.1on Ubuntu 18.04

To install SilverStripe CMS 4.2.1 on Ubuntu 18.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. With this, the method to install SilverStripe on Ubuntu 18.04 comes to an end.

Prerequisites
Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )
    
Php installation with required following modules

add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc 
php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap 
php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Installation

Download a SilverStripe package using the following URL
https://www.silverstripe.org/download/

In my case, I have already downloaded the package, Go to the download directory

root@linuxhelp1:~# cd /home/user1/Downloads/

Extract the downloaded package

root@linuxhelp1:/home/user1/Downloads# unzip SilverStripe-cms-v4.2.1.zip -d SilverStripe
Archive:  SilverStripe-cms-v4.2.1.zip
  inflating: SilverStripe/CONTRIBUTING.md  
  inflating: SilverStripe/behat.yml  
  inflating: SilverStripe/.gitattributes  
  inflating: SilverStripe/.env.example  
  inflating: SilverStripe/.cow.json  
  inflating: SilverStripe/README.md
.
.
extracting: SilverStripe/.git/HEAD  
  inflating: SilverStripe/.git/config  
  inflating: SilverStripe/.git/index  
  inflating: SilverStripe/.git/description  
   creating: SilverStripe/.git/branches/
  inflating: SilverStripe/build.xml  
  inflating: SilverStripe/.travis.yml  
  inflating: SilverStripe/phpunit.xml.dist

Move the extracted file into the HTML directory

root@linuxhelp1:/home/user1/Downloads# mv SilverStripe /var/www/

Navigate to the apache document root directory

root@linuxhelp1:/home/user1/Downloads# cd /var/www/

Change ownership and permission of the as SilverStripe follows

root@linuxhelp1:/var/www# chown -R www-data.www-data SilverStripe
root@linuxhelp1:/var/www# chmod -R 775 SilverStripe

Create a new virtual host configuration for accessing the SilverStripe

root@linuxhelp1:/var/www# 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>

Enable site access

root@linuxhelp1:/var/www# a2ensite silverstripe.conf
Enabling site silverstripe.
To activate the new configuration, you need to run:
  systemctl reload apache2

Disable default access

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Enable  rewrite module

root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Restart the apache service to make the changes effect  

root@linuxhelp1:/var/www# systemctl restart apache2

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://<ipaddress or domain name
ubuntu_menu

You will see the version SilevrStripe
silverstripe_version

Configure Database setup, Admin user setup and Site information as follows
database_setup
admin_setup
choose_install

After the configuration, you will see the following page as shown below
after_configuration

You can log in using the admin user credentials
login_page

After the Successful login, you will see the Admin dashboard of SilverStripe as shown below
admin_dashboard

You will see the Homepage of SilverStripe as shown below
home_page

With this, the method to install SilverStripe CMS 4.2.1 on Ubuntu 18.04 comes to an end.


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: CMS tool Ubuntu
user image Author :  Ethan