• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Craft CMS 3.0.41 on Centos 7.6

  • 00:56 mysql -u root -p
  • 02:07 composer create-project craftcms/craft .
  • 02:18 chown -R apache. ./
  • 02:24 chmod -R 775 ./
  • 02:34 vim /etc/httpd/conf.d/craft.conf
{{postValue.id}}

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 ** snap1

Click on Install craft to start the Installation procedure. snap2

Accept the license agreements by just clicking got it. snap3

Enter the database details to connect and click next snap4

Enroll the admin credentials and click next snap5

Create a name for the website and click finish up snap6

Dashboard of Admins account opens after the successful installation of craft cms snap7 snap8

Thus installation of craft cms 3.0.41 comes to end On Centos 7.6

Tags:
madridgenim
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What are the php modules required for the craft cms 3.0.41?

A

The php modules required for the craft cms 3.0.41 are php php-gd php-pdo php-mysql php-mbstribng php-mcrypt php-simplexml php-pecl-zip are the required php modules in craft cms 3.0.41

Q

Is it Possible to design my layout in craft cms 3.0.41?

A

yes, you can design the layout in craft cms 3.0.41.

Q

Is it possible to create a channel on craft cms 3.0.41?

A

yes, it is possible to create a channel on craft cms 3.0.41.

Q

IS it possible to run multiple sites from a single craft install?

A

yes, it is possible to run multiple sites from a single craft install.

Q

Is it possible to manage multiple content types in one section of craft cms 3.0.41?

A

yes, it is possible to manage multiple content types in one section of craft cms 3.0.41

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Elijah ?
Remote Desktop Connection Has Stopped Working

When accessing my remote machine server using remote desktop on a windows machine I am getting this error

forum (1)

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.