How to Install anchor cms on centos 8

How to Install anchor cms on centos 8

The anchors you can use in NYU's central web content management system (CMS) help site visitors easily jump to content located at various points within your pages.In this tutorial, we will cover the installation of anchors CMS on CentOS 8.

Installation Process:

Check the centos version by using command

[root@linuxhelp ~]# rpm -q centos-release
centos-release-8.1-1.1911.0.8.el8.x86_64

Download the anchor cms by using the following command

[root@linuxhelp ~]# wget https://github.com/anchorcms/anchor-cms/archive/master.zip
--2020-08-26 18:45:16--  https://github.com/anchorcms/anchor-cms/archive/master.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/anchorcms/anchor-cms/zip/master [following]
--2020-08-26 18:45:17--  https://codeload.github.com/anchorcms/anchor-cms/zip/master
Resolving codeload.github.com (codeload.github.com)... 13.233.43.20
Connecting to codeload.github.com (codeload.github.com)|13.233.43.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

master.zip                  [         <=>                   ] 423.91K   240KB/s    in 1.8s    

2020-08-26 18:45:20 (240 KB/s) - ‘master.zip’ saved [434084]

Extract the downloaded file by using the following command

[root@linuxhelp ~]# unzip master.zip 
Archive:  master.zip
ce13d4f3f31ea2706be38e71fc472d342ac780e1
  creating: anchor-cms-master/
 inflating: anchor-cms-master/.editorconfig  
  creating: anchor-cms-master/.github/
 inflating: anchor-cms-master/.github/CODE_OF_CONDUCT.md  
 inflating: anchor-cms-master/.github/CONTRIBUTING.md  
 inflating: anchor-cms-master/.github/ISSUE_TEMPLATE.md  
 inflating: anchor-cms-master/.github/PULL_REQUEST_TEMPLATE.md  
 inflating: anchor-cms-master/.github/anchor-bg.jpeg  
 inflating: anchor-cms-master/.gitignore  
 inflating: anchor-cms-master/.travis.yml  
 inflating: anchor-cms-master/Dockerfile  
.
.
extracting: anchor-cms-master/themes/default/img/search.png  
  creating: anchor-cms-master/themes/default/js/
 inflating: anchor-cms-master/themes/default/js/main.js  
 inflating: anchor-cms-master/themes/default/page.php  
 inflating: anchor-cms-master/themes/default/posts.php  
 inflating: anchor-cms-master/themes/default/search.php  

Move the anchor cms to apache root directory

[root@linuxhelp ~]# mv anchor-cms-master/ /var/www/anchor

Set the ownership for anchor cms

[root@linuxhelp ~]# chown -R apache:apache /var/www/anchor

Set the permission for anchor cms

[root@linuxhelp ~]# chmod -R 755 /var/www/anchor

Configure the virtualhost for anchor cms

[root@linuxhelp ~]# vim /etc/httpd/conf.d/anchor.conf
<virtualhost *:80>
       Servername www.linuxhelp1.com
       Documentroot /var/www/anchor
<directory /var/www/anchor>
allowoverride all
allow from all
</directory>
</virtualhost>

Create a database for anchor cms

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.3.17-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database anchor_db;
Query OK, 1 row affected (0.001 sec)

MariaDB [(none)]> create user 'anchor_user'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]> grant all privileges on anchor_db.* to 'anchor_user'@localhost;
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]> exit
Bye

Restart the apache service

[root@linuxhelp ~]# systemctl restart httpd

Enter into anchor cms directory

[root@linuxhelp ~]# cd /var/www/anchor/

Run the composer install command

[root@linuxhelp anchor]# composer install 
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 13 installs, 0 updates, 0 removals
 - Installing indigophp/hash-compat (v1.1.0): Downloading (100%)         
 - Installing ircmaxell/password-compat (v1.0.4): Downloading (100%)         
 - Installing ircmaxell/security-lib (v1.1.0): Downloading (100%)         
 - Installing ircmaxell/random-lib (v1.2.0): Downloading (100%)         
 - Installing peridot-php/leo (1.6.1): Downloading (100%)         
 - Installing symfony/polyfill-mbstring (v1.8.0): Downloading (100%)         
 - Installing psr/log (1.0.2): Downloading (100%)         
 - Installing symfony/debug (v4.1.0): Downloading (100%)         
 - Installing symfony/console (v3.4.11): Downloading (100%)         
 - Installing phpunit/php-timer (1.0.9): Downloading (100%)         
 - Installing peridot-php/peridot-scope (1.3.0): Downloading (100%)         
 - Installing evenement/evenement (v2.1.0): Downloading (100%)         
 - Installing peridot-php/peridot (1.19.0): Downloading (100%)         
symfony/console suggests installing psr/log-implementation (For using the console logger)
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
Generating autoload files

Once all the setup is completed Restart the apache service

[root@linuxhelp anchor]# systemctl restart httpd

Go to browser and enter the domain name This is the welcome page of anchor cms Select the time zone and click next Configure the database details here Configure the site details here Configure the admin credentials here The installation is completed go to the admin panel Enter the admin credentials to login the anchor cms This is the dashboard of anchor cms With this the installation anchor cms comes to end.

FAQ
Q
What is the PHP requirement in Anchor CMS?
A
The least supported PHP requirement is 5.6+
Q
What is the PHP requirement in Anchor CMS?
A
The least supported PHP requirement is 5.6+
Q
Is Anchor CMS An open-source?
A
Yes, Anchor CMS is open-source.
Q
IS database to be set to Unicode Character in Anchor CMS?
A
Yes, the database has to be set in Unicode Character set in Anchor CMS.
Q
What does MArkDown happy feature mean in Anchor CMS?
A
Anchor gives you full freedom over your words. Just write in Markdown or HTML, whatever you prefer.