{"id":4819,"date":"2018-06-12T21:44:58","date_gmt":"2018-06-12T17:44:58","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-silverstripe-cms\/"},"modified":"2018-06-12T21:44:58","modified_gmt":"2018-06-12T17:44:58","slug":"how-to-install-silverstripe-cms-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install SilverStripe CMS on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>SilverStripe is a free, open source, secure and flexible CMS written in PHP language that can help you to create and manage the content of your websites and web applications. SilverStripe provides web-based administration panel that allows us to modify the part of the website. It comes with lots of features, some of them are listed below:<\/p>\n<ul>\n<li>Provides an extensible web-based interface.<\/li>\n<li>Optimizations for heavy loads.<\/li>\n<li>Supports Linux, Windows and Mac.<\/li>\n<li>Automated cache management system.<\/li>\n<li>Works on smartphones, tablets, and desktop computers.<\/li>\n<li>Supports multiple languages.<\/li>\n<\/ul>\n<p>In this tutorial, we will learn how to install SilverStripe CMS on Ubuntu 18.04 (Bionic Beaver).<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04.<\/li>\n<li>A non-root user with sudo privilegs.<\/li>\n<\/ul>\n<h2 id=\"install-lamp-server\">Install LAMP Server<\/h2>\n<p>Before starting, you will need to install Apache web server, PHP and MariaDB to your system. You can install all of them by just running the following command:<\/p>\n<p class=\"command\">sudo apt-get install apache2 libapache2-mod-php7.2 mariadb-server mariadb-client php7.2-curl php7.2-xml php7.2-soap php7.2-xmlrpc php7.2-gd php7.2-mbstring php7.2-intl php7.2-mysql php7.2-zip php7.2-tidy -y<\/p>\n<p>Once all the packages are installed, start Apache and MariaDB service and enable them to start on boot with the following command:<\/p>\n<p class=\"command\">sudo systemctl start apache2<br \/>sudo systemctl enable apache2<br \/>sudo systemctl start mariadb<br \/>sudo systemctl enable mariadb<\/p>\n<p>Next, you will need to make some changes in php.ini file.<\/p>\n<p class=\"command\">sudo nano \/etc\/php\/7.2\/apache2\/php.ini<\/p>\n<p>Make the following changes:<\/p>\n<pre>file_uploads = On&#13;\nallow_url_fopen = On&#13;\nmemory_limit = 256M&#13;\nupload_max_file_size = 128M&#13;\nmax_execution_time = 360&#13;\ndate.timezone = Asia\/Kolkata&#13;\n<\/pre>\n<p>Save and close the file when you are finished.<\/p>\n<h2 id=\"configure-mariadb\">Configure MariaDB<\/h2>\n<p>By default, MariaDB is not secured, so you will need to secure it first. You can do this by running the following command:<\/p>\n<p class=\"command\">sudo mysql_secure_installation<\/p>\n<p>Answer all the questions as shown below:<\/p>\n<pre> Enter current password for root (enter for none): Just press the Enter&#13; Set root password? [Y\/n]: n&#13; Remove anonymous users? [Y\/n]: Y&#13; Disallow root login remotely? [Y\/n]: Y&#13; Remove test database and access to it? [Y\/n]: Y&#13; Reload privilege tables now? [Y\/n]: Y&#13;\n<\/pre>\n<p>Once the MariaDB is secured, log in to MariaDB shell:<\/p>\n<p class=\"command\">mysql -u root -p<\/p>\n<p>Enter your root password, then create a database for SilverStripe:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; CREATE DATABASE stripedb;<\/p>\n<p>Next, create a user for SilverStripe and grant privileges:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; CREATE USER &#8216;stripeuser&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<br \/>MariaDB [(none)]&gt; GRANT ALL ON stripedb.* TO &#8216;stripeuser&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217; WITH GRANT OPTION;<\/p>\n<p>Next, flush the privileges with the following command:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; FLUSH PRIVILEGES;<\/p>\n<p>Finally, exit from the MariaDB shell:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; exit;<\/p>\n<h2 id=\"install-silverstripe-cms\">Install SilverStripe CMS<\/h2>\n<p>First, you will need to download the latest version of the SilverStripe. You can download it with the following command:<\/p>\n<p class=\"command\">wget https:\/\/silverstripe-ssorg-releases.s3.amazonaws.com\/sssites-ssorg-prod\/assets\/releases\/SilverStripe-cms-v4.0.1.zip<\/p>\n<p>Once the download is completed, extract the downloaded file to the Apache web root directory with the following command:<\/p>\n<p class=\"command\">sudo unzip SilverStripe-cms-v4.0.1.zip -d \/var\/www\/html\/silverstripe<\/p>\n<p>Next, give proper permissions to the silverstripe directory:<\/p>\n<p class=\"command\">sudo chown -R www-data:www-data \/var\/www\/html\/silverstripe\/<br \/>sudo chmod -R 755 \/var\/www\/html\/silverstripe\/<\/p>\n<p>Next, you will need to create an apache virtual host directive for silverstripe. You can do this with the following command:<\/p>\n<p class=\"command\">sudo nano \/etc\/apache2\/sites-available\/silverstripe.conf<\/p>\n<p>Add the following lines:<\/p>\n<pre>&lt;VirtualHost *:80&gt;&#13; ServerAdmin <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"c6a7a2abafa886a3bea7abb6aaa3e8a5a9ab\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13; DocumentRoot \/var\/www\/html\/silverstripe&#13; ServerName example.com&#13; ServerAlias www.example.com&#13;\n&#13; &lt;Directory \/var\/www\/html\/silverstripe\/&gt;&#13; Options +FollowSymlinks&#13; AllowOverride All&#13; Require all granted&#13; &lt;\/Directory&gt;&#13;\n&#13; ErrorLog ${APACHE_LOG_DIR}\/error.log&#13; CustomLog ${APACHE_LOG_DIR}\/access.log combined&#13;\n&#13;\n&lt;\/VirtualHost&gt;&#13;\n<\/pre>\n<p>Save and close the file, then enable apache virtual host with the following command:<\/p>\n<p class=\"command\">sudo a2ensite silverstripe.conf<\/p>\n<p>Next, enable Apache rewrite module and restart Apache with the following command:<\/p>\n<p class=\"command\">sudo a2enmod rewrite<br \/>sudo systemctl restart apache2<\/p>\n<h2 id=\"access-silverstripe-cms\">Access SilverStripe CMS<\/h2>\n<p>Now, SilverStripe CMS is installed, it&#8217;s time to access SilverStripe web interface.<\/p>\n<p>Open your web browser and type the URL <strong>http:\/\/example.com<\/strong>, you will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1_1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_silverstripe_cms_on_ubuntu_1804\/big\/page1_1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts.png\" alt=\"SilverStripe Requirements\" width=\"550\" height=\"205\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page1_2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_silverstripe_cms_on_ubuntu_1804\/big\/page1_2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-1.png\" alt=\"Database Configuration\" width=\"550\" height=\"221\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page1_3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_silverstripe_cms_on_ubuntu_1804\/big\/page1_3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-2.png\" alt=\"CMS admin account\" width=\"550\" height=\"296\" title=\"\"><\/a><\/p>\n<p>Here, provide your database and admin username details, then click on the <strong>Install SilverStripe<\/strong> button. Once the installation is completed, you should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_silverstripe_cms_on_ubuntu_1804\/big\/page2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-3.png\" alt=\"SilverStripe installation successful\" width=\"550\" height=\"309\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>&#8220;Click here to delete the install files&#8221;<\/strong>, You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_silverstripe_cms_on_ubuntu_1804\/big\/page3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-4.png\" alt=\"Log into the CMS\" width=\"550\" height=\"323\" title=\"\"><\/a><\/p>\n<p>Now, provide your login credential and click on the <strong>LOG IN<\/strong> button. You will be redirected to the SilverStripe CMS dashboard as shown below:<\/p>\n<p><a class=\"fancybox\" id=\"img-page5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_silverstripe_cms_on_ubuntu_1804\/big\/page5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-5.png\" alt=\"Silverstripe Dashboard\" width=\"550\" height=\"322\" title=\"\"><\/a><\/p>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-silverstripe-cms%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-6.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-silverstripe-cms%2F&amp;text=How+to+Install+SilverStripe+CMS+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-7.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-8.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-silverstripe-cms%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-silverstripe-cms-on-ubuntu-18-04-lts-9.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>SilverStripe is a free, open source, secure and flexible CMS written in PHP language that can help you to create and manage the content of your websites and web applications. SilverStripe provides web-based administration panel that allows us to modify the part of the website. It comes with lots of features, some of them are &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-4819","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/4819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=4819"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/4819\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=4819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=4819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=4819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}