How To Install HTMLy on Ubuntu 18.04 with LAMP

HTMLy is a unique blogging tool. Its big advantage is that it works without a database. It allows you to create and manage content using flat files. To carry out this installation, you will need a VPS with a preinstalled Linux distribution – Ubuntu 18.04, and also LAMP (there is an option to choose from on Hostry servers).

The website files in most LAMP stack configurations are located in the /var/www/html/ directory. Log into your server and then you need to run the following commands:

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

After that, it is mandatory to check for the latest HTMLy updates

https://github.com/danpros/htmly/releases

Given the following url, replace YOUR_VERSION_NUMBER with the version number you want to use:

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

Customizing HTMLy

To download the HTMLy setup file, you need to run the following command:

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

After successfully loading HTLMy, when you go to the page

http: //YOUR_IP_ADDRESS/installer.php

you may see some error. It can be fixed

How To Fix

First, you need to navigate to the next Apache2 file to change the way Apache handles URLs. This can be done using the following command:

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

What you need to look like is:

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

Then you need to replace with what is provided below (just copy and paste):

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

Finally, after successfully completing the previous step, you need to enable a2enmod. This can be done with the following command:

a2enmod rewrite

After that, restarting the Apache2 service is mandatory

service apache2 restart

Was this article helpful?

Related Articles

Leave A Comment?