1. intro

FlatPress is a lightweight, easy-to-set-up blogging engine. Plain and simple, just PHP. No database.

2. prereqs

source /etc/cid.conf
curl -s http://${rdsserver}/sharel/bin/inst-httpd | sh

3. installation

rpm -q --quiet git || yum -y install git
git clone https://github.com/flatpressblog/flatpress.git /opt/flatpress/
chown "apache:apache" -R /opt/flatpress/
rm -fr /opt/blog
cd /opt/; ln -sv ./flatpress/ blog; cd
wget -nv http://${rdsserver}/sharel/etc/httpd/conf.d/blog.conf -P /etc/httpd/conf.d/
cube /etc/httpd/conf.d/blog.conf "%dnsdomainname%" with "$(dnsdomainname)"
systemctl reload httpd.service

4. references