How to Install Craft CMS 3.0.41 on Centos 7.6
Installation Of Craft CMS 3.0.41 On centOS 7.6
Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web. It has a strong framework for module and plugin development. It has built-in Plugin Store with hundreds of free and commercial plugins. This video covers the tutorial on installation of Craft CMS 3.0.41
Requirements:
Apache 2.4.34
MariaDB 5.5
PHP 7.2
PHP Modules:
php php-gd php-curl php-zip php-mbstring php-mcrypt php-simplexml php-mysql
Configure the mariaDb for craft CMS using the root password as follows:
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 19
Server version: 5.5.60-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 craft character set utf8mb4;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> use craft;
Database changed
MariaDB [craft]> create user user1@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.01 sec)
MariaDB [craft]> grant all on craft.* to user1@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [craft]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [craft]> exit
Bye
Change the directory to Apaches Document root directory to install the craft cms
[root@linuxhelp ~]# cd /var/www
[root@linuxhelp www]# mkdir craft
[root@linuxhelp www]# cd craft
Download the craft cms using composer by the below given link.
[root@linuxhelp craft]# composer create-project craftcms/craft .
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Installing craftcms/craft (1.0.42.1)
- Installing craftcms/craft (1.0.42.1): Downloading (100%)
Created project in .
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 55 installs, 0 updates, 0 removals
- Installing craftcms/plugin-installer (1.5.2): Downloading (100%)
- Installing yiisoft/yii2-composer (2.0.7): Downloading (100%)
- Installing zendframework/zend-stdlib (3.2.1): Downloading (100%)
- Installing zendframework/zend-escaper (2.6.0): Downloading (100%)
.
.
.
.
.
Writing lock file
Generating optimized autoload files
> @php -r "copy('.env.example', '.env');"
> @php -r "unlink('composer.json');"
> @php -r "unlink('LICENSE.md');"
> @php -r "unlink('README.md');"
> @php -r "rename('composer.json.default', 'composer.json');"
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Generated optimized autoload files containing 2904 classes
> @php craft setup/welcome
______ .______ ___ _______ .___________.
/ || _ \ / \ | ____|| |
| ,----'| |_) | / ^ \ | |__ `---| |----`
| | | / / /_\ \ | __| | |
| `----.| |\ \----./ _____ \ | | | |
\______|| _| `._____/__/ \__\ |__| |__|
A N E W I N S T A L L
______ .___ ___. _______.
/ || \/ | / |
| ,----'| \ / | | (----`
| | | |\/| | \ \
| `----.| | | | .----) |
\______||__| |__| |_______/
Generating a security key ... done (3uSX2o3qcZ9IOuFa-KeomsnQrNyZq77Z)
Welcome to Craft CMS! Run the following command if you want to setup Craft from your terminal:
/var/www/craft/craft setup
Assign Ownership permissions to the craft directory
[root@linuxhelp craft]# chown -R apache. ./
Assign Writable permissions to the craft directory
[root@linuxhelp craft]# chmod -R 775 ./
List the contents to view the extracted files.
[root@linuxhelp craft]# ll
total 124
-rwxrwxr-x 1 apache apache 414 Mar 29 17:20 composer.json
-rwxrwxr-x 1 apache apache 109713 Apr 20 08:09 composer.lock
drwxrwxr-x 3 apache apache 88 Mar 29 17:20 config
-rwxrwxr-x 1 apache apache 610 Mar 29 17:20 craft
-rwxrwxr-x 1 apache apache 330 Mar 29 17:20 craft.bat
drwxrwxr-x 2 apache apache 24 Mar 29 17:20 modules
drwxrwxr-x 4 apache apache 51 Apr 20 08:09 storage
drwxrwxr-x 2 apache apache 40 Mar 29 17:20 templates
drwxrwxr-x 30 apache apache 4096 Apr 20 08:09 vendor
drwxrwxr-x 3 apache apache 77 Mar 29 17:20 web
Create a customised configuration file for craft cms
[root@linuxhelp craft]# vim /etc/httpd/conf.d/craft.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/craft/web/
<directory /var/www/craft/>
allowoverride all
allow from all
</directory>
</virtualhost>
Restart the service of Apache
[root@linuxhelp craft]# systemctl restart httpd
**Enter the URL as shown in below picture to install craft CMS **
Click on Install craft to start the Installation procedure.
Accept the license agreements by just clicking got it.
Enter the database details to connect and click next
Enroll the admin credentials and click next
Create a name for the website and click finish up
Dashboard of Admins account opens after the successful installation of craft cms
Thus installation of craft cms 3.0.41 comes to end On Centos 7.6