How to intall SilverStripe CMS 4.2.1on Ubuntu 18.04

To intall 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 download 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
 ServerName www.linuxhelp1.com
DocumentRoot /var/www/SilverStripe/

 AllowOverride All
allow from all 

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://

You will see the version SilevrStripe

Configure Database setup, Admin user setup and Site information as follows


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

You can log in using the admin user credentials

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

You will see the Homepage of SilverStripe as shown below

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

FAQ
Q
How much does it cost to have Moodle hosted?
A
There are many options for hosting. Cost is usually related to services provided and capacity (eg. a university site with 10 000 users will naturally cost more to host and maintain than a sma
Q
When I spotted a bug in the system. What do I do?
A
Go to Tracker, search if the bug has already been reported and create a new issue if not.
Q
Do I have to be really good with technology to use Moodle?
A
To use Moodle, you only need the basic web browsing skills. To install it you need a little more knowledge, but guidance is provided.
Q
How do I publish my SilverStripe CMS website?
A
To publish a SilverStripe CMS website, use the following steps:

In any workspace, on the Home tab, in the Site group, click Publish.
On the Publishing Settings dialog, enter the server info you received from your web host.
Click Validate Connection to ensure that the settings are correct.
Click Publish.
If you have not published your database before, select the Database checkbox.
After previewing the changes, click Continue.
Q
How do I install SilverStripe CMS?
A
To install SilverStripe CMS, use the following steps:

Open WebMatrix and select Site from Web Gallery.
Select the CMS category on the left-hand side.
Find SilverStripe CMS in the list and install it.
In any workspace, on the Home tab, in the Site group, click Run or press F12 to open the site in your default web browser.
Follow the instructions to complete installation.