Install Jamroom CMS on a CentOS 7 VPS

Jamroom is powerful. fast and flexible community CMS based on PHP and MySQL. In this article we will show you how to install Jamroom on a CentOS 7 VPS with Apache, MariaDB and PHP.

In order to run Jamroom, your server should meet the following requirements
PHP 5.3+
MySQL 5.1+

Log in to your Linux VPS as user root and first of all make sure that all packages are up to date

yum -y update

Install Apache web server executing the following command

yum install httpd

Start the web server and enable it to start at boot

systemctl start httpd
systemctl enable httpd

Install PHP and a few PHP extensions required by Jamroom

yum install php php-mysql php-gd php-mbstring

Now, we will install MariaDB

yum install mariadb-server mariadb

Start MariaDB and add it to automatically start on system start-up

systemctl start mariadb.service
systemctl enable mariadb.service

Run the following command to secure your MariaDB server and set a new root passord


Create new database and user for Jamroom

MariaDB [(none)]> create database jamroom;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON jamroom.* TO 'jamroomuser'@'localhost' IDENTIFIED BY 'PASSWORD';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]>> \q;

Go to Jamroom’s official website and download the latest stable version


The downloaded file is in zip format, so we need to install unzip to unpack the archive

yum -y install unzip

Unpack the zip archive to the document root directory

unzip -d /var/www/html/
mv /var/www/html/jamroom-core-5.2.20/ /var/www/html/jamroom

Change the owner of the Jamroom files

chown -R apache:apache /var/www/html/jamroom

Now, we will set up Apache virtual hosting directive for your Jamroom website.

Create a ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content
IncludeOptional vhosts.d/*.conf

and create a ‘/etc/httpd/vhosts.d’ directory where we will put all our virtual hosts.

mkdir /etc/httpd/vhosts.d

Create a virtual host for your Jamroom domain

vim /etc/httpd/vhosts.d/yourdomain.conf

<VirtualHost YOUR_SERVER_IP:80>
DocumentRoot "/var/www/html/jamroom"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

<Directory "/var/www/html/">
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted

With this step the installation from the command line is completed. Now, open your favorite web browser and head it to and follow the on-screen instructions to finish the installation

PS. If you liked this post please share it with your friends on the social networks or simply leave a reply below. Thanks.

Be the first to comment

Leave a Reply

Your email address will not be published.