How to install FlatPress CMS on Linuxmint-18.03

To install FlatPress CMS on Linuxmint-18.03
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
Pre-requirements
Install LAMP (apache and php5.6 )

FOR PHP INSTALLATION:

apt-get install python-software-properties
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php5.6-mysql php5.6-curl php5.6-json php5.6-cgi php5.6 libapache2-mod-php5.6 php5.6-mcrypt php5.6-xmlrpc php5.6-gd php5.6-mbstring php5.6 php5.6-common php5.6-xmlrpc php5.6-soap php5.6-xml php5.6-intl php5.6-cli php5.6-ldap php5.6-zip php5.6-readline php5.6-imap php5.6-tidy php5.6-recod

we have to download flatpress cms package using by wget command:


linuxhelp ~ # wget https://github.com/evacchi/flatpress/archive/v1.0.3.zip
--2018-06-02 01:46:58--  https://github.com/evacchi/flatpress/archive/v1.0.3.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/evacchi/flatpress/zip/v1.0.3 \[following\]
--2018-06-02 01:46:59--  https://codeload.github.com/evacchi/flatpress/zip/v1.0.3
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified \[application/zip\]
Saving to: &lsquo v1.0.3.zip&rsquo 
v1.0.3.zip                   \[ ===========================> \] 882.31K   459KB/s    in 1.9s
2018-06-02 01:47:03 (459 KB/s) - &lsquo v1.0.3.zip&rsquo  saved \[903485\]


We have to extract the package:


linuxhelp ~ # 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
  inflating: flatpress-1.0.3/README.md
  inflating: flatpress-1.0.3/TESTING
  inflating: flatpress-1.0.3/admin.php
   creating: flatpress-1.0.3/admin/
  inflating: flatpress-1.0.3/admin/admin-inline.tpl
   creating: flatpress-1.0.3/admin/imgs/
.
.
.
inflating: flatpress-1.0.3/setup/res/setup.css
   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

We have to rename the extracted directory:


linuxhelp ~ # ls
flatpress-1.0.3  v1.0.3.zip
linuxhelp ~ # mv flatpress-1.0.3/ flat

we have to change ownership and permission of the flat directory


linuxhelp ~ # chown -R www-data:www-data flat/
linuxhelp ~ # chmod -R 775 flat/

we have to move the flat directory into the html location


linuxhelp ~ # mv flat/ /var/www/html/

We have to create the virtualhost for flatpress cms


linuxhelp ~ # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim flat.conf
< VirtualHost \*:80> 
ServerName www.linuxhelp1.ocm
DocumentRoot /var/www/html/flat/
< Directory /var/www/html/flat/> 
AllowOverride All
Order allow,deny
allow from all
< /Directory> 
< /VirtualHost> 

We have to enable the flat.conf file


linuxhelp sites-available # a2ensite flat.conf
Enabling site flat.
To activate the new configuration, you need to run:
  service apache2 reload

We have to entry to the host file:


linuxhelp sites-available # vim /etc/hosts 
< give your ip>    < give your localip> 

We have to restart the apache:


linuxhelp sites-available # systemctl restart apache2.service


To open a browser and type http://local IP (or) domain name

Here it will show welcome page of Flatpress cms

Here it will show admin user setting

Here it will show the installation completed

Here it will show login page of flatpress cms

Here it will show admin page of flat press cms

Tag : Linux Mint
FAQ
Q
What are the alternative tools available for the Flatpress CMS?
A
The following alternative tools available for the Flatpress CMS as,

Wordpress,

Drupal,

Ghost,

Joomla
Q
How to install prerequirement for the Flatpress CMS on Ubuntu?
A
For the installation of the prerequirement for the Flatpress CMS on Ubuntu, use the following command as given below, "apt-get install apache2 php5 php-pear php5-suhosin bzip2"
Q
How to download the Flatpress CMS?
A
For download the Flatpress CMS, use the following link as given below, "http://flatpress.org/home/?page=download"
Q
What are the main terms of using the Flatpress CMS?
A
FlatPress is an open source, multi-lingual extensible blogging engine which does not require a DBMS to work on. It stores all of its content on text files. It also contains features like support of various plugins, widget support, customizable themes.
Q
Files for download are .tar.bz2 archives. Can you provide zipped archives?
A
Maintaining packages for all the OS's is quite complicated. Why shouldn't I provide a .sit for MACs, then? Bzip2 has a great compression for text files and you can easiliy expand it on every platform.

On Windows I'd suggest the opensource 7-zip or the freeware tug-zip or nonton antv online which are free and will give you access to many other compression formats such as rar and tar.gz beside tar.bz2.