How to Install Flatpress CMS 1.1v on Ubuntu 19.04
Installation of FlatPress CMS 1.1v on Ubuntu 19.04
Flatpress is a lightweight, easy-to-set-up blogging engine. FlatPress CMS requires no database. This tutorial covers the method to install FlatPress CMS 1.1 on Ubuntu 19.04.
Features:
No need to fiddle with SQL
Easy to backup! Just copy one directory
Easy plugin system
Widget support
Easy to customize with themes (powered by Smarty)
Software Requirements:
Apache 2.2+
PHP 5.3+
PHP Modules:
php-gd php-pdo php-mysql php-simplexml php-zip php-mbstring php-mcrypt
Download link:
wget https://github.com/flatpressblog/flatpress/archive/1.1.zip
Installation process
Change the directory to Apache’s Document root directory.
root@linuxhelp:~# cd /var/www
Create a directory for FlatPress CMS.
root@linuxhelp:/var/www# mkdir flatpress
Change the directory to flatpress.
root@linuxhelp:/var/www# cd flatpress/
Download Flatpress CMS using the following command. The Link is mentioned in the command.
root@linuxhelp:/var/www/flatpress# wget https://github.com/flatpressblog/flatpress/archive/1.1.zip
--2019-05-20 16:41:08-- https://github.com/flatpressblog/flatpress/archive/1.1.zip
Resolving github.com (github.com)... 192.30.253.112
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/flatpressblog/flatpress/zip/1.1 [following]
--2019-05-20 16:41:10-- https://codeload.github.com/flatpressblog/flatpress/zip/1.1
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘1.1.zip’
1.1.zip [ <=> ] 1021K 478KB/s in 2.1s
2019-05-20 16:41:13 (478 KB/s) - ‘1.1.zip’ saved [1045826]
List the contents to check the downloaded zip file of FlatPress CMS.
root@linuxhelp:/var/www/flatpress# ll
total 1032
drwxr-xr-x 2 root root 4096 May 20 16:41 ./
drwxr-xr-x 4 root root 4096 May 20 16:40 ../
-rw-r--r-- 1 root root 1045826 May 20 16:41 1.1.zip
Extract the zip file of FlatPress CMS.
root@linuxhelp:/var/www/flatpress# unzip 1.1.zip
Archive: 1.1.zip
0b3fdc7d4e583f8be840b7130a9e4320a3f85200
creating: flatpress-1.1/
inflating: flatpress-1.1/.gitignore
inflating: flatpress-1.1/CHANGELOG.md
inflating: flatpress-1.1/LICENSE.md
inflating: flatpress-1.1/README.md
inflating: flatpress-1.1/admin.php
creating: flatpress-1.1/admin/
inflating: flatpress-1.1/admin/admin-inline.tpl
.
.
.
.
inflating: flatpress-1.1/setup/tpls/footer.tpl.php
inflating: flatpress-1.1/setup/tpls/header.tpl.php
inflating: flatpress-1.1/setup/tpls/locked.tpl.php
inflating: flatpress-1.1/setup/tpls/step1.tpl.php
inflating: flatpress-1.1/setup/tpls/step2.tpl.php
inflating: flatpress-1.1/setup/tpls/step3.tpl.php
inflating: flatpress-1.1/static.php
List the contents to view the extracted files.
root@linuxhelp:/var/www/flatpress# ll
total 1036
drwxr-xr-x 3 root root 4096 May 20 16:41 ./
drwxr-xr-x 4 root root 4096 May 20 16:40 ../
-rw-r--r-- 1 root root 1045826 May 20 16:41 1.1.zip
drwxr-xr-x 10 root root 4096 Feb 23 00:06 flatpress-1.1/
Renmae the newly created directory to final.
root@linuxhelp:/var/www/flatpress# mv flatpress-1.1/ final
Change the directory to final.
root@linuxhelp:/var/www/flatpress# cd final/
List to view the extracted files inside the final directory.
root@linuxhelp:/var/www/flatpress/final# ll
total 136
drwxr-xr-x 10 root root 4096 Feb 23 00:06 ./
drwxr-xr-x 3 root root 4096 May 20 16:41 ../
drwxr-xr-x 6 root root 4096 Feb 23 00:06 admin/
-rwxr-xr-x 1 root root 124 Feb 23 00:06 admin.php*
-rwxr-xr-x 1 root root 337 Feb 23 00:06 blog.php*
-rw-r--r-- 1 root root 7670 Feb 23 00:06 CHANGELOG.md
-rw-r--r-- 1 root root 6108 Feb 23 00:06 comments.php
-rwxr-xr-x 1 root root 2695 Feb 23 00:06 contact.php*
-rwxr-xr-x 1 root root 5385 Feb 23 00:06 defaults.php*
drwxr-xr-x 2 root root 4096 Feb 23 00:06 docs/
drwxr-xr-x 2 root root 4096 Feb 23 00:06 fp-content/
drwxr-xr-x 2 root root 4096 Feb 23 00:06 fp-defaults/
drwxr-xr-x 4 root root 4096 Feb 23 00:06 fp-includes/
drwxr-xr-x 5 root root 4096 Feb 23 00:06 fp-interface/
drwxr-xr-x 25 root root 4096 Feb 23 00:06 fp-plugins/
-rw-r--r-- 1 root root 191 Feb 23 00:06 .gitignore
-rw-r--r-- 1 root root 4619 Feb 23 00:06 index.php
-rw-r--r-- 1 root root 18026 Feb 23 00:06 LICENSE.md
-rwxr-xr-x 1 root root 2460 Feb 23 00:06 login.php*
-rw-r--r-- 1 root root 1977 Feb 23 00:06 README.md
-rwxr-xr-x 1 root root 267 Feb 23 00:06 rss.php*
-rwxr-xr-x 1 root root 4707 Feb 23 00:06 search.php*
drwxr-xr-x 7 root root 4096 Feb 23 00:06 setup/
-rwxr-xr-x 1 root root 265 Feb 23 00:06 setup.php*
-rwxr-xr-x 1 root root 284 Feb 23 00:06 static.php*
Assign Ownership permissions to the final driectory.
root@linuxhelp:/var/www/flatpress/final# chown -R www-data. ./
Assign Writable permissions to the final driectory.
root@linuxhelp:/var/www/flatpress/final# chmod -R 775 ./
Create a customised configuration file for FlatPress CMS.
root@linuxhelp:/var/www/flatpress/final# vim /etc/apache2/sites-available/flatpress.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/flatpress/final/
<directory /var/www/flatpress/final/>
Allowoverride all
allow from all
</directory>
</virtualhost>
Disable the access for default sites.
root@linuxhelp:/var/www/flatpress/final# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the access for FlatPress CMS site.
root@linuxhelp:/var/www/flatpress/final# a2ensite flatpress.conf
Site flatpress already enabled
Enable the rewrite module.
root@linuxhelp:/var/www/flatpress/final# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart the servcie of Apache.
root@linuxhelp:/var/www/flatpress/final# systemctl restart apache2
Switch over the browser and enter the server name that had set in the customized Configuration file of FlatPress CMS 1.1.

Welcome page of FlatPress CMS has been opened and click next to enter the login credentials of admins account
Click login page to enter into the login page of FlatPress CMS.
Enter the login credentials of admins account of FlatPress CMS 1.1 and can see the dashboard of the admin’s account.

Thus we have successfully installed the Flatpress CMS 1.1 On Ubuntu 19.04
Comments ( 0 )
No comments available