Install Habari with Nginx on Debian 8

In this tutorial we will cover the steps needed for installing Habari with Nginx on a Debian 8 VPS.

Habari is a free and open source blog engine written in PHP that currently supports MySQL, SQLite and PostgreSQL for the database backend. It is a publishing platform and application framework with a modular, object-oriented core.

An interesting fact is that the name Habari comes from the Swahili greeting habari which means “(what’s the) news”.

REQUIREMENTS

We will be using our SSD 1Linux VPS hosting plan for this tutorial. This article assumes that you already have Nginx, MySQL and PHP installed and configured on your server. If that is not the case, you can follow our great tutorial and install the LEMP stack on your server easily.

LOG IN TO YOUR SERVER VIA SSH

# ssh root@server_ip

You can check whether you have the proper Debian version installed on your server with the following command:

INSTALL HABARI

Your next step is to download Habari and install it, configuring an Nginx virtual host directive for your domain along the way. First enter a directory of your choice where you will download the latest Habari version which at the moment of writing this article is version 0.9.2.

We will use the /opt directory but feel free to download Habari to a location of your choice.

# cd /opt
# wget http://habariproject.org/dist/habari-0.9.2.zip

Create a directory in which the unpacked installation will be moved:

# mkdir -p /var/www/html/habari

Unzip the archive into the above mentioned directory:

# unzip habari-0.9.2.zip -d /var/www/html/habari/

Assign the proper ownership of files and directories so your Nginx web server can actually read the data:

# chown -R www-data: /var/www/html/habari/

And last but not least, open a Nginx file, let’s call it habari which will serve as a virtual host for the domain you’ll use to host Habari.

Congratulations, you have successfully installed Habari with Nginx on your Debian 8 server.

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