Skip to main content
Logo
Overview

htmly flat-file blog

April 18, 2020
1 min read

Test Htmly on Ubuntu 19.10

Terminal window
# apt install apache2 php php-zip php-xml
# cat /etc/apache2/sites-available/000-default.conf
...
<VirtualHost *:80>
...
DocumentRoot /var/www/html
<Directory "/var/www/html/">
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
DirectoryIndex index.php
</Directory>
...
# systemctl enable apache2
# systemctl start apache2
# systemctl status apache2
# cd /var/www/html
# wget https://github.com/danpros/htmly/releases/latest

visit server http://localhost/installer.php and run through initial steps

Terminal window
# cd /var/www
# chown -R www-data html/
# cd html/
# ls -l backup/
total 5
-rw-r--r-- 1 www-data www-data 1773 Apr 19 12:07 htmly_2020-04-19-12-07-28.zip
# tree content/
content/
├── admin
│   └── blog
│   ├── general
│   │   ├── draft
│   │   └── post
│   │   └── 2020-04-19-12-05-14_general_post-1.md
│   └── uncategorized
│   └── post
└── data
├── category
│   └── general.md
└── tags.lang
9 directories, 3 files
# cat content/admin/blog/general/post/2020-04-19-12-05-14_general_post-1.md
<!--t post 1 t-->
<!--d this is a test post #1 d-->
<!--tag general tag-->