SilverStripe is a free and open source content management system. It is written in PHP and uses MySQL to store its data. SilverStripe is very flexible, extensible and easy to use application. It is easy to learn and optimized to produce high-quality reusable codes. It is responsive and available in many languages. It is a very secure platform as it is written from ground. It is a popular CMS and used by prominent companies like Lenovo and Forbes etc.
In this tutorial, we will be installing SilverStripe on CentOS 7 server.
SilverStripe does not require any special hardware requirements. It can be installed on servers with a small amount of RAM. All the required dependencies will be installed throughout the tutorial. You will need a minimal installation of CentOS 7 with root access on it. If you are logged in as a non-root user, you can run sudo -i to switch to root user.
Before installing any package it is recommended that you update the packages and repository using the following command.
yum -y update
Now install Apache, Git, and MariaDB, which is a fork or MySQL using the following command.
yum -y install httpd mariadb-server mariadb git
SilverStripe requires PHP 5.3.3 or higher. In this tutorial, we will install PHP 5.6. Install EPEL repository using following commands.
yum -y install epel-releaseyum -y update
Now install Webtatic repository using the following commands.
Once you have PHP installed, you can check the version of PHP using the following command.
You should get output similar to this.
[root@liptan-pc ~]# php -v
PHP 5.6.30 (cli) (built: Jan 19 2017 22:31:39)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
You will need to edit the php.ini file to configure the timezone. Run the following command to open the file in nano editor.
Now find the following line.
Uncomment the line and provide the timezone for your application. An example may be.
date.timezone = Asia/Kolkata
Now start Apache web server and enable it to start at boot time using the following command.
systemctl start httpdsystemctl enable httpd
To start MariaDB and enable it to start at boot time using the following commands.
systemctl start mariadbsystemctl enable mariadb
Now run the following commands to secure your MySQL or MariaDB installation.
It will run a small script which asks you to provide the root password for MariaDB. As we have just installed MariaDB, the root password is not set, just press enter to proceed further. Set a root password for MySQL root user and answer y for all other questions asked.
Now you will need to create a database to store SilverStripe data.
To create a database we will need to login to MySQL command line first. Run the following command for same.
mysql -u root -p
This will prompt you for the password, provide the root password of MySQL which you have set earlier. Now run the following query to create a new database for your SilverStripe installation.
CREATE DATABASE ss_data;
To create a new database user, run the following query.
CREATE USER 'ss_user'@'localhost' IDENTIFIED BY 'StrongPassword';
Replace StrongPassword with a strong password. Now provide the appropriate privileges to your database user over the database you have created. Run the following command.
GRANT ALL PRIVILEGES ON ss_data.* TO 'ss_user'@'localhost';
Now run the following command to immediately apply the changes on the database privileges.
Exit from MySQL prompt using exit command.
SilverStripe can be installed in two ways, either using composer or using the setup archive. In this tutorial both the methods are explained.
If you want to use Composer to install SilverStripe, you will need to install Composer. Composer is a dependency manager for PHP.
If you have followed the tutorial correctly, you would have all the requirements for PHP configuration, file permission, and Web server configuration satisfied. Now scroll down to database configuration and fill out the details of the database we created earlier.
Click Install SilverStripe button and the installer will install the application to your server.
Once the installation finishes, you will be redirected to your site. You will need to delete the installation file now, Click on the Click here to delete all install files link on the homepage. You will need to login using the administrator credentials. Once done, you are ready to configure your website.
Looking for the right web hosting solution for your website can be an intimidating task. Options nowadays are more diversified than ever, and each year brings new developments in the web hosting market. If you have no clue of what to look out for, you can find yourself overwhelmed with...
Content marketing continues to be one of the most valuable tools for today’s online businesses. With content, you can improve your chances of reaching your target audience, boost your search engine standing, and even unlock new opportunities for sales. The more content you produce, the more you can strengthen your...
User Experience (UX) is one of the most crucial factors to consider in web design. As the number of websites and applications in the world today continues to accelerate, businesses are under more pressure than ever to impress customers straight away. If a user visits your website and finds slow-loading...