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 
web_config

Welcome page of Flatpress cms 
welcome_page

Configure the Admin user setup as follows 
user_acc_setup

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

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

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

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

With this, the method to install FlatPress CMS  on Ubuntu 18.04 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: Ubuntu
user image Author :  Matthew