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

Download a E107  package using the following URL

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

Download a E107  package using the following URL

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: ‘v1.0.3.zip’
v1.0.3.zip                   [ ===========================>] 882.31K   459KB/s    in 1.9s
2018-06-02 01:47:03 (459 KB/s) - ‘v1.0.3.zip’ saved [903485]

Extract the package as follow

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

Rename the extracted directory

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

Change ownership and permission as shown below

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

Move the flat directory into the html location

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

Create a virtual host for flat press cms as follow

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>

Enable Site access

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

Make the entry to the host file

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

Restart the Apache service

linuxhelp sites-available # systemctl restart apache2.service

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

You will see the Welcome page of Flatpress cms
Snap2

Configure the Admin user setup
Snap3

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

Access the login page from the options shown below
Snap5

After the Successful login, you will see the Admin dashboard of Flat press as shown below

Snap6

With this, the method to install Flatpress CMS on Linuxmint - 18.03 comes to an end.


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Linux Mint
user image Author :  Jack