Copyright © 2017 Healthable. A Krafty Sprouts Property.
How to Install Monstra CMS on a Centos Vps
Monstra is a modern and fast Content Management System (CMS) written in PHP. It has a tons of useful plugins and themes, and it is constantly developed by its developers. With its speed and simplicity, Monstra is a great publishing tool for personal and small-business websites. The installation of Monstra CMS is fairly easy and straightforward.
In this article we will show you how to install Monstra on a CentOS 7 VPS with Apache and PHP. For this guide, we used a CentOS 7 VPS hosted by RoseHosting and it worked perfectly. If you can’t figure out how to install Monstra, you can use one of their Linux VPS Hosting services and their expert Linux admins will install Monstra for you.
Monstra has a few installation requirements:
You need to have PHP version 5.3.2 or higher, with SimpleXML and Multibyte String PHP extensions enabled.
You can use either Apache or Nginx as a web server. For the purposes of this tutorial we will use Apache.
If your virtual server meet these requirements, you can start installing Monstra.
Install Monstra on a CentOS 7 VPS with Apache
Log in to your CentOS server via SSH as user root
and as usual, run the following command to update all installed packages on your server
yum -y update
Install Apache web server
yum install httpd
Start the web server and add it to automatically start on the system start-up:
systemctl start httpd systemctl enable httpd
Monstra is a PHP based application, so run the following command to install PHP and the other required PHP extensions:
yum install php php-common php-xml php-mbstring
Download the latest stable release of Monstra from their official website to your server. At the moment of writing this article it is version 3.0.4.
Unpack the downloaded zip archive to the document root directory on your server:
yum -y install unzip unzip monstra-3.0.3.zip -d /var/www/html
In general, the document root directory is /var/www/html, but to be sure you can use the following command to find out:
grep -i '^documentroot' /etc/httpd/conf/httpd.conf DocumentRoot "/var/www/html"
Change the ownership of the Monstra files and directories:
chown -R apache:apache /var/www/html/monstra
Next, we will create an Apache virtual host for your domain. Create a ‘/etc/httpd/conf.d/vhosts.conf’ configuration file and add the following content to it:
vim /etc/httpd/conf.d/vhosts.conf IncludeOptional vhosts.d/*.conf
Then, create a new directory named ‘vhosts.d’ and a new Apache configuration file named ‘yourdomain.com.conf’:
mkdir /etc/httpd/vhosts.d/ touch /etc/httpd/vhosts.d/yourdomain.com.conf
Edit the newly created Apache configuration file:
and add the following virtual host directives to it:
<VirtualHost YOUR_SERVER_IP:80> ServerAdmin firstname.lastname@example.org DocumentRoot "/var/www/html/monstra/" ServerName yourdomain.com ServerAlias www.yourdomain.com ErrorLog "/var/log/httpd/yourdomain.com-error_log" CustomLog "/var/log/httpd/yourdomain.com-access_log" combined <Directory "/var/www/html/monstra/"> DirectoryIndex index.html index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
Restart the Apache web server for the changes to take effect:
systemctl restart httpd
Now, navigate your favorite web browser to http://yourdomain.com/install.php to finish the Monstra installation. On the first screen the wizard will check if your server meets all the installation requirements for running Monstra. If all requirements are met, on the next step you will have to enter your site name, and set the administrator account details. After you log in with your administrator account you can check out the great features Monstra has to offer and browse through the user interface.