How To Install FlatPress CMS 1.1 On Centos7.6
- 00:58 lsb_release -d
- 01:09 yum install httpd -y
- 01:22 systemctl enable httpd
- 01:29 systemctl start httpd
- 02:04 yum install epel-release yum-utils -y
- 02:16 wget https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
- 02:31 rpm -Uvh webtatic-release.rpm
- 02:42 wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- 03:00 rpm -Uvh remi-release 7.rpm
- 03:26 yum-config-manager --enable remi-php72
- 03:38 yum install php php-gd php-pdo php-mysql php-simplexml php-mbstring php-mcrypt php-pecl-zip -y
- 03:58 php -v
- 04:26 wget https://github.com/flatpressblog/flatpress/archive/1.1.zip
- 04:45 unzip 1.1.zip
- 05:14 chmod -R 775 flatpress/
- 05:39 chmod 777 fp-content
- 05:55 vim /etc/httpd/conf.d/flatpress.conf
- 06:56 systemctl restart httpd
FlatPress CMS 1.1 Installation On Centos7.6
Flatpress is a lightweight, easy-to-set-up blogging engine. Plain and simple and no database needed. This tutorial covers the installation procedure of FlatPress CMS 1.1 On Centos7.6.
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+
Installation
Check the version of Centos using lsb_release .
[root@linuxhelp ~]# lsb_release -d
Description: CentOS Linux release 7.6.1810 (Core)
Install ,enable and Start the Apache Server
[root@linuxhelp ~]# yum install httpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: mirrors.nhanhoa.com
* updates: mirrors.nhanhoa.com
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-88.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.6-88.el7.centos for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
.
.
.
.
unning transaction
Installing : apr-1.4.8-3.el7_4.1.x86_64 1/5
Installing : apr-util-1.5.2-6.el7.x86_64 2/5
Installing : httpd-tools-2.4.6-88.el7.centos.x86_64 3/5
Installing : mailcap-2.1.41-2.el7.noarch 4/5
Installing : httpd-2.4.6-88.el7.centos.x86_64 5/5
Verifying : httpd-tools-2.4.6-88.el7.centos.x86_64 1/5
Verifying : apr-1.4.8-3.el7_4.1.x86_64 2/5
Verifying : mailcap-2.1.41-2.el7.noarch 3/5
Verifying : httpd-2.4.6-88.el7.centos.x86_64 4/5
Verifying : apr-util-1.5.2-6.el7.x86_64 5/5
Installed:
httpd.x86_64 0:2.4.6-88.el7.centos
Dependency Installed:
apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-88.el7.centos mailcap.noarch 0:2.1.41-2.el7
[root@linuxhelp ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Check the status of Apache Server:
[root@linuxhelp ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2019-04-01 07:46:47 IST; 7s ago
To Install PHP,we need to install the 3 third-party repositories which are
Epel-release
Webtatic release
Remi-release
Install the epel-release by executing the following command.
[root@linuxhelp ~]# yum install epel-release yum-utils -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: mirrors.nhanhoa.com
* updates: mirrors.nhanhoa.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
---> Package yum-utils.noarch 0:1.1.31-45.el7 will be updated
---> Package yum-utils.noarch 0:1.1.31-50.el7 will be an update
--> Finished Dependency Resolution
.
.
.
.
.
Running transaction
Updating : yum-utils-1.1.31-50.el7.noarch 1/3
Installing : epel-release-7-11.noarch 2/3
Cleanup : yum-utils-1.1.31-45.el7.noarch 3/3
Verifying : epel-release-7-11.noarch 1/3
Verifying : yum-utils-1.1.31-50.el7.noarch 2/3
Verifying : yum-utils-1.1.31-45.el7.noarch 3/3
Installed:
epel-release.noarch 0:7-11
Updated:
yum-utils.noarch 0:1.1.31-50.el7
Download And Install the webtatic release repository
[root@linuxhelp ~]# wget https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
--2019-04-01 07:48:02-- https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Resolving mirror.webtatic.com (mirror.webtatic.com)... 46.101.64.32
Connecting to mirror.webtatic.com (mirror.webtatic.com)|46.101.64.32|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13152 (13K) [application/x-redhat-package-manager]
Saving to: ‘webtatic-release.rpm’
100%[===================================================================================================>] 13,152 --.-K/s in 0s
2019-04-01 07:48:03 (241 MB/s) - ‘webtatic-release.rpm’ saved [13152/13152]
[root@linuxhelp ~]# rpm -Uvh webtatic-release.rpm
warning: webtatic-release.rpm: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:webtatic-release-7-3 ################################# [100%]
Download And Install the remi-release repository by the below command
[root@linuxhelp ~]# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
--2019-04-01 07:48:39-- http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Resolving rpms.remirepo.net (rpms.remirepo.net)... 195.154.241.117, 2001:bc8:33a1:100::1
Connecting to rpms.remirepo.net (rpms.remirepo.net)|195.154.241.117|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16004 (16K) [application/x-rpm]
Saving to: ‘remi-release-7.rpm’
100%[===================================================================================================>] 16,004 --.-K/s in 0.001s
2019-04-01 07:48:40 (29.6 MB/s) - ‘remi-release-7.rpm’ saved [16004/16004]
[root@linuxhelp ~]# rpm -Uvh remi-release-7.rpm
warning: remi-release-7.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:remi-release-7.6-2.el7.remi ################################# [100%]
Enable the remi-repository with php72 version.
[root@linuxhelp ~]# yum-config-manager --enable remi-php72
Loaded plugins: fastestmirror, langpacks
============================================================= repo: remi-php72 ==============================================================
[remi-php72]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/7/remi-php72
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = 1
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7/remi-php72/gpgcadir
.
.
.
..
sslverify = True
throttle = 0
timeout = 30.0
ui_id = remi-php72
ui_repoid_vars = releasever,
basearch
username =
Install the php modules for Flatpress CMS 1.1.
[root@linuxhelp ~]# yum install php php-gd php-pdo php-mysql php-mcrypt php-mbstring php-pecl-zip php-simplexml
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 7.4 kB 00:00:00
* base: ftp.iitm.ac.in
* epel: kartolo.sby.datautama.net.id
* extras: mirrors.nhanhoa.com
* remi-php72: mirror.reconn.ru
* remi-safe: mirror.reconn.ru
* updates: mirrors.nhanhoa.com
* webtatic: uk.repo.webtatic.com
epel | 4.7 kB 00:00:00
remi-php72 | 3.0 kB 00:00:00
remi-safe | 3.0 kB 00:00:00
webtatic | 3.6 kB 00:00:00
.
.
.
.
.
Installed:
php.x86_64 0:7.2.16-1.el7.remi php-fpm.x86_64 0:7.2.16-1.el7.remi php-gd.x86_64 0:7.2.16-1.el7.remi
php-imap.x86_64 0:7.2.16-1.el7.remi php-mbstring.x86_64 0:7.2.16-1.el7.remi php-mysqlnd.x86_64 0:7.2.16-1.el7.remi
php-pdo.x86_64 0:7.2.16-1.el7.remi php-pecl-mcrypt.x86_64 0:1.0.2-2.el7.remi.7.2 php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.7.2
php-xml.x86_64 0:7.2.16-1.el7.remi
Dependency Installed:
gd-last.x86_64 0:2.2.5-8.el7.remi libargon2.x86_64 0:20161029-2.el7 libc-client.x86_64 0:2007f-16.el7
libmcrypt.x86_64 0:2.5.8-13.el7 libwebp7.x86_64 0:1.0.2-1.el7.remi libzip5.x86_64 0:1.5.2-1.el7.remi
php-cli.x86_64 0:7.2.16-1.el7.remi php-common.x86_64 0:7.2.16-1.el7.remi php-json.x86_64 0:7.2.16-1.el7.remi
check the verison of php.
[root@linuxhelp ~]# php -v
PHP 7.2.16 (cli) (built: Mar 5 2019 14:45:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Check the modules of php by using m option.
[root@linuxhelp ~]# php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
.
.
.
.
.
.
xml
xmlreader
xmlwriter
xsl
zip
zlib
Download the Flatpress CMS Under the Document Root directory OF Apache.
[root@linuxhelp ~]# cd /var/www
[root@linuxhelp www]# wget https://github.com/flatpressblog/flatpress/archive/1.1.zip
--2019-04-01 10:03:27-- https://github.com/flatpressblog/flatpress/archive/1.1.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/flatpressblog/flatpress/zip/1.1 [following]
--2019-04-01 10:03:29-- https://codeload.github.com/flatpressblog/flatpress/zip/1.1
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
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,045,826 280KB/s in 3.7s
2019-04-01 10:03:33 (280 KB/s) - ‘1.1.zip’ saved [1045826]
[root@linuxhelp www]# ll
total 1024
-rw-r--r-- 1 root root 1045826 Apr 1 10:03 1.1.zip
drwxr-xr-x 2 root root 6 Nov 5 07:17 cgi-bin
drwxr-xr-x 2 root root 6 Nov 5 07:17 html
extract the downloaded zip file by using unzip command
[root@linuxhelp www]# 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/setup/res/setup.css
creating: flatpress-1.1/setup/tpls/
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
[root@linuxhelp www]# ll
total 1028
-rw-r--r-- 1 root root 1045826 Apr 1 10:03 1.1.zip
drwxr-xr-x 2 root root 6 Nov 5 07:17 cgi-bin
drwxr-xr-x 10 root root 4096 Feb 23 00:06 flatpress-1.1
drwxr-xr-x 2 root root 6 Nov 5 07:17 html
rename the extracted file to flatpress
[root@linuxhelp www]# mv flatpress-1.1/ flatpress
[root@linuxhelp www]# ll
total 1028
-rw-r--r-- 1 root root 1045826 Apr 1 10:03 1.1.zip
drwxr-xr-x 2 root root 6 Nov 5 07:17 cgi-bin
drwxr-xr-x 10 root root 4096 Feb 23 00:06 flatpress
drwxr-xr-x 2 root root 6 Nov 5 07:17 html
Assign Writable permissions to the flatpress directory recursively
[root@linuxhelp www]# chmod -R 775 flatpress/
[root@linuxhelp www]# cd flatpress/
Assign Full permissions to fp-content directory which is requirement for flatpress CMS.
[root@linuxhelp flatpress]# chmod 777 fp-content/
Create a ACUSTOMISED Configuration File for Flatpress CMS 1.1 Version
[root@linuxhelp flatpress]# vim /etc/httpd/conf.d/flatpress.conf
<VirtualHOst *:80>
servername www.linuxhelp1.com
documentroot /var/www/flatpress/
<directory /var/www/flatpress/>
allowoverride all
allow from all
</directory>
</virtualhost>
Test the configuration of Apache server before restarting the service of apache
[root@linuxhelp flatpress]# httpd -t
Syntax OK
Restart the service of Apache:
[root@linuxhelp flatpress]# systemctl restart httpd
Open the browser and type the servername that had set inside the customised configuration file for flatpress CMS
Click next On the welcome page of FlatPress CMS

Enroll the admin account details to install and click login now.

Login the admin credentials that has set to access the Flatpress cms 1.1

With this, the method to install Flatpress CMS 1.1 on centos 7.6 has been completed
Comments ( 0 )
No comments available