How to install Flatpress CMS on Rocky Linux 8.6
To Install Flatpress CMS on Rocky Linux 8.6
Introduction
CMS stands for the Content Management System, which is the software used to manage digital content that relies on text files to store all of its content, so it doesn't require MySQL.
Installation Procedure:
Step 1: Check the OS version by using the below command
[root@localhost ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
Step 2: Install the FlatPress CMS package by using the below command
[root@localhost Downloads]# wget https://github.com/flatpressblog/flatpress/archive/1.1.zip
--2022-07-08 06:56:40-- https://github.com/flatpressblog/flatpress/archive/1.1.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/flatpressblog/flatpress/zip/refs/tags/1.1 [following]
--2022-07-08 06:56:41-- https://codeload.github.com/flatpressblog/flatpress/zip/refs/tags/1.1
Resolving codeload.github.com (codeload.github.com)... 13.127.152.42
Connecting to codeload.github.com (codeload.github.com)|13.127.152.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘1.1.zip’
1.1.zip [ <=> ] 1021K 2.67MB/s in 0.4s
2022-07-08 06:56:41 (2.67 MB/s) - ‘1.1.zip’ saved [1045826]
Step 3: Unzip the Zip file by using the below command
[root@localhost Downloads]# 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
creating: flatpress-1.1/admin/imgs/
extracting: flatpress-1.1/admin/imgs/config.png
extracting: flatpress-1.1/admin/imgs/entries.png
extracting: flatpress-1.1/admin/imgs/maintain.png
extracting: flatpress-1.1/admin/imgs/newentry.png
inflating: flatpress-1.1/admin/imgs/plugins.png
extracting: flatpress-1.1/admin/imgs/widgets.png
creating: flatpress-1.1/admin/includes/
inflating: flatpress-1.1/admin/includes/panels.prototypes.php
inflating: flatpress-1.1/admin/index.php
Step 4: Move the file to apache root directory by using the below command
[root@localhost Downloads]# mv flatpress-1.1/ /var/www/flatpress
Step 5: change the owner and group for this directory by using the below command
[root@localhost www]# chown -R apache:apache /var/www/flatpress/
Step 6: Give the permission to this directory by using the below command
[root@localhost www]# chmod -R 775 /var/www/flatpress/
Step 7: Create the virtual host file to access FlatPress CMS by using the below command.
[root@localhost ~]# vim /etc/httpd/conf.d
<virtualhost *:80>
servername linuxhelp1.com
documentroot /var/www/flatpress
<directory /var/www/flatpress
allowoverride all
allow from all
</directory>
</virtualhost>
Step 8: Open the host’s entry file and enter your localhost and domain name by using the below command
[root@localhost ~]# vim /etc/hosts
192.168.6.122 linuxhelp1.com
Step 9: Restart the httpd service by using the below command
[root@localhost ~]# systemctl restart httpd
Step 10: Then go to the browser and search your domain there as shown in the below image
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Flatpress CMS on Rocky Linux 8.6. Your feedback is much welcome.
Comments ( 0 )
No comments available