Learn How To Installing HTMLy on Ubuntu 16.04 with LAMP
Table of Contents
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 IT Web Services VPS.
- IT Web Services 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.
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:
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
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.
Do you need help setting up this on your own service?
Please contact us and we’ll provide you the best possible quote!