Article

Table of Contents
Try Vultr Today with

$50 Free on Us!

Installing HTMLy on Ubuntu 16.04 with LAMP

Published on: Fri, Sep 14, 2018 at 5:06 pm EST
Linux Guides Server Apps Ubuntu

HTMLy is a blogging engine that works without a database. It allows you to create and manage content with flat files. In this guide, we will go over the steps you need to take to install HTMLy on your Vultr VPS.

Prerequisites

  • Vultr VPS with LAMP stack on Ubuntu 16.04

In most LAMP stack configurations, website files are stored in the directory /var/www/html/. Let's navigate to that folder and remove the placeholder files. Log in with SSH and then run the following commands.

cd /var/www/html/
rm -rf index.php logo.png

Next, check for the latest version of HTMLy. At the time of writing, it is v2.7.4. Given the following URL, replace VNUMBER with the version number you would like to use.

https://github.com/danpros/htmly/releases/download/VNUMBER/installer.php

Setup HTMLy

Let's download the HTMLy installer file and give our server user the correct permissions with the following commands:

wget  https://github.com/danpros/htmly/releases/download/v2.7.4/installer.php
chown www-data:www-data -R .

If you open up your web browser now and go to http://YOUR_IP_ADDRESS/installer.php, you will see a warning. Let's fix that first before going further with the installation.

Go to the following Apache2 file to change the way Apache handles URLs:

nano /etc/apache2/sites-enabled/http.conf

Find the following part. It should be near the beginning of the file.

<Directory /var/www/html/>
     Options -Indexes
     Require all granted
</Directory>

Then, replace that part with the following text:

<Directory /var/www/html>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
</Directory>

At last, enable a2enmod:

sudo a2enmod rewrite

Then, restart the Apache service:

service apache2 restart

When you visit http://YOUR_IP_ADDRESS/installer.php again, you will see that the error message is gone and you can follow the instructions for installing HTMLy. Once completed, you will be logged in and ready to create your first blog post.

Want to contribute ?

You could earn up to $300 by adding new articles