How to install FlatPress CMS on Ubuntu 18.04

To Install FlatPress CMS on Ubuntu 18.04


FlatPress is an open source, multi-lingual extensible blogging engine which does not require a database. It stores all of its content on text files. It also contains features like support of various plugins, widget support, customizable themes.

Prerequisites


Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap  
php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Download a Flatpress package using the following command

root@linuxhelp1:~# wget wget https://github.com/evacchi/flatpress/archive/v1.0.3.zip
--2018-06-25 14:33:09--  http://wget/
Resolving wget (wget)... failed: Name or service not known.
wget: unable to resolve host address ‘ wget’ 
.
.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘ v1.0.3.zip’ 

v1.0.3.zip                  [        < =>                     ] 882.31K   333KB/s    in 2.6s    

2018-06-25 14:33:15 (333 KB/s) - ‘ v1.0.3.zip’  saved [903485]

FINISHED --2018-06-25 14:33:15--
Total wall clock time: 6.6s
Downloaded: 1 files, 882K in 2.6s (333 KB/s)

The downloaded package is a zip file, so unzip the package using the following command

root@linuxhelp1:~# unzip v1.0.3.zip
Archive:  v1.0.3.zip
d4ad93a661c158df52a53b17fcaad8a963545033
   creating: flatpress-1.0.3/
  inflating: flatpress-1.0.3/CHANGELOG 
  inflating: flatpress-1.0.3/COPYING 
  inflating: flatpress-1.0.3/LICENSE 
  inflating: flatpress-1.0.3/README
.
.
   creating: flatpress-1.0.3/setup/tpls/
  inflating: flatpress-1.0.3/setup/tpls/footer.tpl.php 
  inflating: flatpress-1.0.3/setup/tpls/header.tpl.php 
  inflating: flatpress-1.0.3/setup/tpls/locked.tpl.php 
  inflating: flatpress-1.0.3/setup/tpls/step1.tpl.php 
  inflating: flatpress-1.0.3/setup/tpls/step2.tpl.php 
  inflating: flatpress-1.0.3/setup/tpls/step3.tpl.php 
  inflating: flatpress-1.0.3/static.php  

Move the extracted file into the HTML directory

root@linuxhelp1:~# mv flatpress-1.0.3 /var/www/

Switch to the following directory


root@linuxhelp1:~# cd /var/www/

Change the ownership and permission of the file as follows

root@linuxhelp1:/var/www# chown -R www-data.www-data flatpress-1.0.3
root@linuxhelp1:/var/www# chmod -R 775 flatpress-1.0.3

Create a new virtual host configuration for accessing the Flatpress application

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/flatpress.conf
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/flatpress-1.0.3/
< Directory /var/www/flatpress-1.0.3/> 
Allowoverride All
allow from all
< /Directory> 
< /VirtualHost> 

Enable the site access

root@linuxhelp1:/var/www# a2ensite flatpress.conf
Enabling site flatpress.
To activate the new configuration, you need to run:
  systemctl reload apache2


Disable the default access

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Enable the rewrite module

root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

After the confirmation setup Restart the apache2 service

root@linuxhelp1:/var/www# systemctl restart apache2

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name

Welcome page of Flatpress cms

Configure the Admin user setup as follows

After the configuration you will see the following page as shown below

After all the Setup you can log in using the admin user credentials

After the Successful login, you will see the welcome page of Flat press CMS as shown below

You can access the admin cpanel of the flat press cms using the following options

With this, the method to install FlatPress CMS on Ubuntu 18.04 comes to an end.

Tag : Ubuntu
FAQ
Q
Is there any alternatives for FlatPress CMS?
A
The alternatives are,
WordPress. WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. ...
Drupal. Content-Management Framework (CMF), Content Management System (CMS), Community and Blog software. ...
Ghost. ...
Joomla. ...
Grav. ...
Jekyll. ..
Q
What are the Prerequisites in FlatPress CMS?
A
The pre-requirements are,
Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )
Q
what are the features in FlatPress CMS?
A
• Standard-compliant (XHTML valid)
• No need to fiddle with SQL
• Easy to backup! Just copy one directory
• Easy plugin system
• Widget support
• Easy to customize with themes
Q
What is FlatPress CMS?
A
FlatPress is an open source, multi-lingual extensible blogging engine which does not require a database. It stores all of its content on text files. It also contains features like support of various plugins, widget support, customizable themes.
Q
is there any option to change the appearance?
A
yes, it has different themes available . Check : http://wiki.flatpress.org/res:themes