How to install Jamroom on Ubuntu 16.04

Today we will show you how to install Jamroom on an Ubuntu 16.04 VPS using Apache web-server and MySQL database.

Jamroom is a community content management system. It enables you to bring your entire community online to participate in your websites content creation. If you want to build an online community where everyone has their own identity then Jamroom can provide you with the tools to do it. It is fairly easy to install Jamroom on an Ubuntu 16.04 Cloud VPS. The installation process should take about 5-10 minutes if you follow the very easy steps described below.

At the time of writing this tutorial, Jamroom 6.0.3 is the latest stable version available and it requires:

– Apache web server;
– PHP (version 5.3 or higher) along with the mbstring, mysql, zip, gd and mcrypt extensions. They are most generally active by default on a standard php installation.
– MySQL(version 5.1 or higher) installed on your Linux Cloud VPS;

INSTRUCTIONS:

Login to your VPS via SSH

ssh user@vps

Update the system

[user]$ sudo apt-get update && sudo apt-get -y upgrade

Install MariaDB 10.0

To install MariaDB, run the following command:

[user]$ sudo apt-get install -y mariadb-server

Next, we need to create a database for our Jamroom installation.

[user]$ mysql -u root -p

MariaDB [(none)]> CREATE DATABASE jamroom;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON jamroom.* TO 'jamroomuser'@'localhost' IDENTIFIED BY 'your-password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Do not forget to replace ‘your-password’ with a strong password.

Install Apache2 web server

[user]$ sudo apt-get install apache2

Install PHP and required PHP modules

To install the latest stable version of PHP version 7 and all necessary modules, run:

[user]$ sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt

Then, install the ImageMagick image library:

[user]$ sudo apt-get install imagemagick

Enable the Apache2 rewrite module if it is not already installed:

[user]$ sudo a2enmod rewrite

In order to activate the new configuration, restart the Apache web server using the following command:

[user]$ sudo service apache2 restart

Go to Jamroom’s official website and download the latest release of their application on your server:

[user]$ sudo cd /opt && wget https://www.jamroom.net/networkmarket/core_download/jamroom-open-source.zip
[user]$ sudo unzip jamroom-open-source.zip
[user]$ sudo mv jamroom-open-source / /var/www/html/jamroom

All files have to be readable by the web server, so we need to set  proper ownership

[user]$ sudo chown www-data:www-data -R /var/www/html/jamroom/

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named jamroom.conf’ on your virtual server:

[user]$ sudo touch /etc/apache2/sites-available/jamroom.conf
[user]$ sudo ln -s /etc/apache2/sites-available/jamroom.conf /etc/apache2/sites-enabled/jamroom.conf
[user]$ sudo nano /etc/apache2/sites-available/jamroom.conf

Then, add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/jamroom/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/jamroom/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Restart the Apache web server for the changes to take effect:

[user]$ sudo service apache2 restart

Open your favorite web browser, navigate to http://your-domain.com/ and if you configured everything correctly the Jamroom installer should be starting. You should follow the easy instructions on the install screen inserting the necessary information as requested.

That is it. The Jamroom installation is now complete.

Once installed, open http://your-domain.com/user/signup or click the ‘Create Account’ button to go to the create account page and the first user you create will be the Admin user.


Of course you don’t have to do any of this if you use one of our Linux Cloud VPS Hosting services, in which case you can simply ask our expert Linux admins to install Jamroom 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.

2 thoughts on “How to install Jamroom on Ubuntu 16.04”

  1. the wget code is targeting a specific version, to have that URL keep pace with whatever the latest version is, change the URL to:
    https://www.jamroom.net/networkmarket/core_download/jamroom-open-source.zip

    Reply

Leave a Comment