It’s Open source content Management tool.

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

Package Requirement:

PHP:- 5.6 or above
apache:- 2.0 or above
MariaDB:-5.6 or above

Step1. Install PHP

yum install  httpd php php-pdo php-common php-mcrypt php-mbstring  php-mysql php-gd php-curl elinks mariadb

Step2. Add extension in PHP file

vim /etc/php.ini
extension=mysql.so
extension=pdo.so
extension=mbstring.so

Step3. Download craft

cd /var/www/html/
wget https://download.craftcdn.com/craft/2.6/2.6.2993/Craft-2.6.2993.zip

Step4. Enable and start service

systemctl enable mariadb
systemctl start mariadb

Step5. Setup database

mysql_secure_install

Step6. Create database

CREATE DATABASE craft;
CREATE USER 'craftuser'@'localhost' IDENTIFIED BY 'Redhat@123_000';
GRANT ALL PRIVILEGES ON craft.* TO 'craftuser'@'localhost';
FLUSH PRIVILEGES;

Step7. unzip craft file

unzip Craft-2.6.2993.zip

Step8. Configure database file

cd craft/config
 vim db.php
 Edit following
 ' server'  =>  ' localhost' ,
 ' user'  =>  ' craftuser' ,
 ' password'  =>  ' Redhat@123_000' ,
 ' database'  =>  ' craft' ,
 ' tablePrefix'  =>  ' craft' ,

Step9. Setup .htaccess file

cd /var/www/html/public
mv htaccess .htaccess

Step10. Configure Apache file

vim /etc/httpd/conf.d/craft.conf
<VirtualHost *:80>
ServerAdmin webmaster@craft.abc
DocumentRoot "/var/www/html/public/"
ServerName craft.abc
ServerAlias www.craft.abc
ErrorLog "/var/log/httpd/craft.abc-error_log"
CustomLog "/var/log/httpd/craft.abc-access_log" combined
<Directory "/var/www/html/public/">
DirectoryIndex  index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Step11. Set permission

chown -R apache.apache /var/www/html/*
chmod -R 777 /var/www/html/*

Step12. Restart service

systemctl restart httpd.service

Steps13. Access via browser

http://localhost/index.php/admin
or
http://ip/index.php/admin

For Live Installation you may refer below youtube link:-

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here