In order to run Jamroom, your server should meet the following requirements
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 jamroom-core-5.2.20.zip -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
and create a ‘/etc/httpd/vhosts.d’ directory where we will put all our virtual hosts.
Create a virtual host for your Jamroom domain
vim /etc/httpd/vhosts.d/yourdomain.conf <VirtualHost YOUR_SERVER_IP:80> ServerAdmin email@example.com DocumentRoot "/var/www/html/jamroom" 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/yourdomain.com/"> DirectoryIndex index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
With this step the installation from the command line is completed. Now, open your favorite web browser and head it to http://yourdomain.com/install.php and follow the on-screen instructions to finish the installation
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to set this up for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.