It’s Open source Content Management tool.

https://www.youtube.com/watch?v=nTOfi8XNlM0

Package Requirement:

PHP:- 5.6 or above
MariaDB:- 5.6 or above
nginx:- 1.15 or above

Step1. Install webtatic repository

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Step2. Install PHP

yum install -y php72w-cli php72w-fpm php72w-mbstring php72w-curl php72w-mysql php72w-sqlite3 php72w-mcrypt php72w-gd php72w-dom elinks   -y

Step3. Check PHP version

php --version

Step4. Enable and start service

systemctl enable php-fpm.service 
systemctl start php-fpm.service

Step5. Create repo file for nginx

vim /etc/yum.repos.d/nginx_mainline.repo
[nginx]
name=nginx repo
baseurl=https://nginx.org/packages/mainline/centos/7/$basearch/
gpgcheck=1
enabled=1

Step6. Download and import sign key

wget https://nginx.org/keys/nginx_signing.key
rpm --import nginx_signing.key

Step7. Install nginx

yum install nginx -y

Step8. Check Nginx version

nginx -v

Step9. Enable and start service

systemctl enable nginx.service
systemctl start nginx.service

Step10. Create repo file for MariaDB

vim /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = https://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Step11. Install MariaDB

yum install  MariaDB-server MariaDB-client -y

Step12. Check database version

mysql --version

Step13. Enable and start services

systemctl enable mariadb.service
systemctl start mariadb.service

Step14. Create Database

mysql  -u root -p
create database anchor;
grant all on anchor.* to 'anchor' identified by 'Redhat@123_000';
exit

Step15. Create nginx file

vim /etc/nginx/conf.d/anchor.conf 
 server {
     listen 80;
     server_name 192.168.72.130;      
     root /var/www/anchor;
     index index.php index.html;
     location / {
         try_files $uri $uri/ /index.php;
     }
     location ~ .php$ {
         fastcgi_pass 127.0.0.1:9000;
         fastcgi_index index.php;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include fastcgi_params;
     }
 }

Step16. Validating configuration

nginx -t

Step17. Reload nginx service

systemctl reload nginx.service

Step18. Download and install composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer
chmod +x /usr/bin/composer
composer --version

Step19. Download Anchor using composer

mkdir -p /var/www/anchor
 cd /var/www/anchor
 composer create-project anchorcms/anchor-cms.

Step20. Change ownership

chown -R nginx:nginx /var/www/anchor

Step21. Change User and Group

vim /etc/php-fpm.d/www.conf 
 user = nginx                 
 group = nginx

Step22. Restart php-fpm service

systemctl restart php-fpm.service

Step23. Create session folder and change ownership

mkdir -p /var/lib/php/session
chown -R nginx:nginx /var/lib/php/session

Step24. Access on browser

http://ip/
or 
http://192.168.72.130
Username : admin
Password: password (Have to set during install fork using GUI)

For Live Installation you may refer below youtube link:-

https://www.youtube.com/watch?v=nTOfi8XNlM0

LEAVE A REPLY

Please enter your comment!
Please enter your name here