How to install and configure Anchor CMS on Fedora 34
- 00:38 Cat /etc/os-release
- 00:52 mysql -u root -p
- 01:09 create database anchor;
- 01:16 create user 'anchoruser'@localhost identified by 'Linuxc#4';
- 01:38 grant all privileges on anchor.* to 'anchoruser'@localhost;
- 01:44 flush privileges;
- 01:52 exit
- 02:01 wget https://github.com/anchorcms/anchor-cms/releases/download/0.12.7/anchor-cms-0.12.7-bundled.zip
- 02:17 unzip anchor-cms-0.12.7-bundled.zip -d /var/www/anchor
- 02:33 cd /var/www/anchor
- 02:39 ll
- 02:48 chown -R apache:apache anchor-cms-0.12.7
- 03:04 chmod -R 775 anchor-cms-0.12.7
- 03:21 vim /etc/httpd/conf.d/.conf
- 03:37 vim /etc/hosts
- 04:10 systemctl restart httpd
To Install And Configure Anchor CMS On Fedora 34.
Introduction:
Anchor CMS is an open-source, light-weight and ultra-simple blogging system which is written in PHP and uses MySQL. It is used for markdown support, custom fields, themes, i18n compatibility and many more. In this tutorial, we will cover the installation of Anchor CMS on Fedora 34.
Installation Procedure:
Step 1: Check the OS version by using the below command.
[root@linuxhelp ~]# cat /etc/os-release
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
VERSION_CODENAME=""
PLATFORM_ID="platform:f34"
PRETTY_NAME="Fedora 34 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:34"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/34/system-administrators-guide/"
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Step 2: Create database by using the below command.
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.27 MySQL Community Server - GPL
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database anchor;
Query OK, 1 row affected (0.08 sec)
mysql> create user 'anchoruser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.05 sec)
mysql> grant all privileges on anchor.* to 'anchoruser'@localhost;
Query OK, 0 rows affected (0.03 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
Step 3: Install the Anchor CMS package by using the below command.
[root@linuxhelp ~]# wget https://github.com/anchorcms/anchor-cms/releases/download/0.12.7/anchor-cms-0.12.7-bundled.zip
--2021-12-04 05:27:44-- https://github.com/anchorcms/anchor-cms/releases/download/0.12.7/anchor-cms-0.12.7-bundled.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://objects.githubusercontent.com/github-production-release-asset-2e65be/1697736/6dd0c6f6-47af-11e8-86a5-ffef4d0402f5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211203T235744Z&X-Amz-Expires=300&X-Amz-Signature=c9d9c86db648d6251267ac41ba7930b303349872a554ba4ddfb6b6591289e782&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=1697736&response-content-disposition=attachment%3B%20filename%3Danchor-cms-0.12.7-bundled.zip&response-content-type=application%2Foctet-stream [following]
--2021-12-04 05:27:44-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/1697736/6dd0c6f6-47af-11e8-86a5-ffef4d0402f5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211203T235744Z&X-Amz-Expires=300&X-Amz-Signature=c9d9c86db648d6251267ac41ba7930b303349872a554ba4ddfb6b6591289e782&X-Amz- type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1612327 (1.5M) [application/octet-stream]
Saving to: ‘anchor-cms-0.12.7-bundled.zip’
anchor-cms-0.12.7-bundled.zip 100%[=============================================================>] 1.54M 2.33MB/s in 0.7s
2021-12-04 05:27:46 (2.33 MB/s) - ‘anchor-cms-0.12.7-bundled.zip’ saved [1612327/1612327]
Step 4: Unzip the downloaded package by using the below command.
[root@linuxhelp ~]# unzip anchor-cms-0.12.7-bundled.zip -d /var/www/anchor
Archive: anchor-cms-0.12.7-bundled.zip
creating: /var/www/anchor/anchor-cms-0.12.7/
inflating: /var/www/anchor/anchor-cms-0.12.7/.editorconfig
creating: /var/www/anchor/__MACOSX/
creating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/._.editorconfig
creating: /var/www/anchor/anchor-cms-0.12.7/.github/
inflating: /var/www/anchor/anchor-cms-0.12.7/.github/anchor-bg.jpeg
creating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/.github/
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/.github/._anchor-bg.jpeg
inflating: /var/www/anchor/anchor-cms-0.12.7/.github/CODE_OF_CONDUCT.md
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/.github/._CODE_OF_CONDUCT.md
inflating: /var/www/anchor/anchor-cms-0.12.7/.github/CONTRIBUTING.md
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/.github/._CONTRIBUTING.md
inflating: /var/www/anchor/anchor-cms-0.12.7/.github/ISSUE_TEMPLATE.md
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/.github/._ISSUE_TEMPLATE.md
inflating: /var/www/anchor/anchor-cms-0.12.7/.github/PULL_REQUEST_TEMPLATE.md
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/.github/._PULL_REQUEST_TEMPLATE.md
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/._.github
inflating: /var/www/anchor/anchor-cms-0.12.7/.gitignore
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/._.gitignore
inflating: /var/www/anchor/anchor-cms-0.12.7/.travis.yml
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/._.travis.yml
creating: /var/www/anchor/anchor-cms-0.12.7/anchor/
inflating: /var/www/anchor/anchor-cms-0.12.7/anchor/composer_check.php
creating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/._composer_check.php
creating: /var/www/anchor/anchor-cms-0.12.7/anchor/config/
inflating: /var/www/anchor/anchor-cms-0.12.7/anchor/config/aliases.php
creating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/config/
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/config/._aliases.php
inflating: /var/www/anchor/anchor-cms-0.12.7/anchor/config/error.php
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/config/._error.php
inflating: /var/www/anchor/anchor-cms-0.12.7/anchor/config/migrations.php
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/config/._migrations.php
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/._config
creating: /var/www/anchor/anchor-cms-0.12.7/anchor/functions/
inflating: /var/www/anchor/anchor-cms-0.12.7/anchor/functions/articles.php
creating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/functions/
inflating: /var/www/anchor/__MACOSX/anchor-cms-0.12.7/anchor/functions/._articles.php
finishing deferred symbolic links:
/var/www/anchor/anchor-cms-0.12.7/vendor/bin/peridot -> ../peridot-php/peridot/bin/peridot
Step 5: Change the directory and list the files by using the below commands.
[root@linuxhelp ~]# cd /var/www/anchor
[root@linuxhelp anchor]# ll
total 0
drwxr-xr-x 1 root root 430 Apr 24 2018 anchor-cms-0.12.7
drwxrwxr-x 1 root root 72 Apr 24 2018 __MACOSX
Step 6: Give the owner and group name for this directory by using the below command.
[root@linuxhelp anchor]# chown -R apache:apache anchor-cms-0.12.7
Step 7: Give the permission for this directory by using the below command.
[root@linuxhelp anchor]# chmod -R 775 anchor-cms-0.12.7
Step 8: Open the httpd configuration file by using the below command.
[root@linuxhelp anchor]# vim /etc/httpd/conf.d/anchor.conf
<virtualhost *:80>
servername www.linexhelp1.com
documentroot /var/www/anchor/ anchor-cms-0.12.7
<directory /var/www/ anchor/ anchor-cms-0.12.7>
allowoverride all
allow from all
</directory>
</virtualhost>
Step 9: Open the hosts entry file and enter the IP and domain name by using the below command.
[root@linuxhelp anchor]# vim /etc/hosts
Step 10: Restart the httpd service by using the below command.
[root@linuxhelp anchor]# systemctl restart httpd
Step 11: Change the directory by using the below command.
[root@linuxhelp anchor]# cd anchor-cms-0.12.7
Step 12: Install the composer by using the below command.
[root@linuxhelp anchor-cms-0.12.7]# dnf install composer
Fedora Modular 34 - x86_64 18 kB/s | 6.7 kB 00:00
Fedora Modular 34 - x86_64 - Updates 66 kB/s | 6.9 kB 00:00
Fedora Modular 34 - x86_64 - Updates 34 kB/s | 148 kB 00:04
Fedora 34 - x86_64 - Updates 14 kB/s | 7.2 kB 00:00
Fedora 34 - x86_64 - Updates 1.2 MB/s | 5.0 MB 00:04
Fedora 34 - x86_64 5.2 kB/s | 6.8 kB 00:01
MySQL 8.0 Community Server 7.1 kB/s | 2.6 kB 00:00
MySQL Connectors Community 8.3 kB/s | 2.6 kB 00:00
MySQL Tools Community 9.3 kB/s | 2.6 kB 00:00
Install 24 Packages
Total download size: 11 M
Installed size: 38 M
Is this ok [y/N]: y
Downloading Packages:
done.a 34 - x86_64 [ === ] 16 kB/s | 10 kB --:-- ETA
(1/24): php-psr-cache-1.0.1-11.fc34.noarch.rpm 12 kB/s | 13 kB 00:01
(2/24): php-psr-event-dispatcher-1.0.0-5.fc34.noarch.rpm 9.3 kB/s | 11 kB 00:01
(3/24): php-jsonlint-1.8.3-2.fc34.noarch.rpm 13 kB/s | 19 kB 00:01
(4/24): php-intl-7.4.26-1.fc34.remi.x86_64.rpm 377 kB/s | 206 kB 00:00
(5/24): php-react-promise-2.8.0-3.fc34.noarch.rpm 36 kB/s | 26 kB 00:00
(6/24): composer-2.1.14-1.fc34.remi.noarch.rpm 814 kB/s | 440 kB 00:00
(7/24): php-PsrLog-1.1.4-1.fc34.remi.noarch.rpm 70 kB/s | 15 kB 00:00
php-symfony4-finder-4.4.35-1.fc34.remi.noarch php-symfony4-process-4.4.35-1.fc34.remi.noarch
Complete!
Step 13: Restart the httpd service by using the below command.
[root@linuxhelp anchor]# systemctl restart httpd
Step 14: Then go to the browser and search your domain as shown in the below images.








Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install and configure Anchor CMS on Fedora 34. Your feedback is much welcome.
Comments ( 0 )
No comments available