1

Installing HTMLy on Ubuntu 16.04 with LAMP

 2 years ago
source link: https://www.vultr.com/docs/installing-htmly-on-ubuntu-16-04-with-lamp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
<?xml encoding="utf-8" ??>

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 $600 by adding new articles


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK