• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Drupal on CentOS web panel

1797

How to install Drupal on CentOS web panel

Drupal is an open source content Management System similar to wordpress used for creating Websites without any PHP coding. It is programmed in PHP and provides GUI for the users to create websites. This tutorial covers the installation of Drupal on CentOS web panel.

Installation procedure

To start with the installation procedure, go to CentOS web panel and create new user account and domain for drupal.
dashboard

Enter the required details to create a new account and click create option.
new account

The summary for the new user is shown below.
account summary

Enter the required details for adding a new domain and click create option.
add domain

Now create a new database for drupal and a new user by granting a new privileges by executing a set of following commands.

[root@cwp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 265
Server version: 10.1.25-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.

MariaDB [(none)]>  create database drupal 
Query OK, 1 row affected (0.05 sec)

MariaDB [(none)]>  CREATE USER ' drupaluser' @' localhost'  IDENTIFIED BY ' 123'  
Query OK, 0 rows affected (0.06 sec)

MariaDB [(none)]>  GRANT ALL ON drupal.* TO ' drupaluser' @' localhost'  
Query OK, 0 rows affected (0.02 sec)

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

MariaDB [(none)]>  exit 
Bye

Now download the drupal package latest version (8.3.7) by using below command or from it’ s official website using the wget command.

[root@cwp ~]# wget https://ftp.drupal.org/files/projects/drupal-8.3.7.tar.gz
--2017-08-24 06:33:48--  https://ftp.drupal.org/files/projects/drupal-8.3.7.tar.gz
Resolving ftp.drupal.org (ftp.drupal.org)... 151.101.9.175
Connecting to ftp.drupal.org (ftp.drupal.org)|151.101.9.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12739663 (12M) [application/octet-stream]
Saving to: ‘ drupal-8.3.7.tar.gz’ 

100%[===================================================================================================================================================> ] 1,27,39,663  154KB/s   in 77s    
2017-08-24 06:35:06 (161 KB/s) - ‘ drupal-8.3.7.tar.gz’  saved [12739663/12739663]

Next extract the package directly into your domain’ s default document root.

[root@cwp ~]# tar -xzf drupal-8.3.7.tar.gz -C /home/drupal/public_html/
[root@cwp ~]# cd /home/drupal/public_html/
[root@cwp public_html]# ls -l
total 12
drwxr-xr-x 8 root   root   4096 Aug 16 22:49 drupal-8.3.7
-rw-r--r-- 1 drupal drupal 5069 Jan 25  2017 index.html
[root@cwp public_html]# mv drupal-8.3.7 drupal

Change the ownership and file permission for drupal directory.

[root@cwp ~]# chown -R drupal:drupal /home/drupal/
[root@cwp ~]# chmod -R 755 /home/drupal/

Next create an apache configuration file named drupal.conf for drupal and enter the following contents in the file. Save and exit the file.

[root@cwp ~]# vim /usr/local/apache/conf.d/drupal.conf

< VirtualHost *:80> 
Servername drupal.example.com
DocumentRoot /home/drupal/public_html
< /VirtualHost> 
< Directory /home/drupal/public_html> 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
suPHP_UserGroup drupal drupal
< /Directory> 

Restart the Apache service by running the following command.

[root@cwp ~]# systemctl restart httpd

Now open the browser and call your domain for drupal by running the following link drupal.example.com. Select the language and click save and continue option.
language

The installation procedure for Drupal starts. Click the save and continue option.
installation profile

This page contains the list of PHP version, extensions, file system and settings file. Click the continue anyway.
PHP summary

Enter the following details for database configuration and click save and continue option.
database configuration

The installation procedure of Drupal is progressing on the progress bar.
installing drupal

The site has been configured by entering the details of the site.
configure site

The username and password for site maintenance account.
site maintanence account

Save and continue the settings in the installation wizard.
settings

The installation is complete. The welcome page for Drupal is shown as follows.
drupal welcome page

The installation procedure of Drupal is successfully completed.

Tags:
elijah
Author: 

Comments ( 1 )

Hunkah
As of Aug 11th 2019 this tutorial no longer works. I've tried it with Drupal 8.7.5. I think it might be the vhost.conf file, but I'm not sure.
Add a comment

Frequently asked questions ( 5 )

Q

What is drupal and what for it is used?

A

Drupal is an open source content Management System similar to wordpress used for creating Websites without any PHP coding. It is programmed in PHP and provides GUI for the users to create w

Q

What is the Drupal Association?

A

The Drupal Association is the non-profit organization dedicated to helping Drupal flourish. It helps the Drupal community with funding, infrastructure, events, promotion, and distribution.

Q

Where can I get help working with Drupal?

A

Check out the support page for help getting started with documentation, finding people you can ask questions, and more. The issue queue is how we bring issues to the community's attention.

Q

May I change Drupal's core files to make changes to my site or application?

A

We strongly recommend that you don't. Hacking core means that you won't be able to take advantage of Drupal updates (including any security updates) without losing your changes.

Q

There are a lot of CMS choices. Why choose Drupal?

A

Drupal is the open source content management framework behind millions of websites and applications. It powers many of the web’s most influential platforms.

Related Tutorials in How to install Drupal on CentOS web panel

Related Tutorials in How to install Drupal on CentOS web panel

How to install Laravel on CentOS Web Panel
How to install Laravel on CentOS Web Panel
Nov 30, 2017
How to install Wordpress using CentOS Web Panel
How to install Wordpress using CentOS Web Panel
Aug 7, 2017
How to install Imagemagick in CentOS Web Panel
How to install Imagemagick in CentOS Web Panel
Feb 15, 2017
How to update Apache and suPHP Apache module in CentOS Web Panel.
How to update Apache and suPHP Apache module in CentOS Web Panel.
Feb 13, 2017
How to manage multiple servers using CentOS Web Panel
How to manage multiple servers using CentOS Web Panel
Mar 24, 2016
How to install BigTree CMS on CentOS Web Panel
How to install BigTree CMS on CentOS Web Panel
Aug 24, 2017
How to make basic configuration in CentOS Web Panel
How to make basic configuration in CentOS Web Panel
Feb 4, 2017
How to install CentOS Web Panel in CentOS
How to install CentOS Web Panel in CentOS
Feb 4, 2017

Related Forums in How to install Drupal on CentOS web panel

Related Forums in How to install Drupal on CentOS web panel

CentOS Web Panel
robert class=
DNS server is not working on Centos Web Panel
Dec 29, 2017
CentOS Web Panel
anettejoseph class=
Centos Web Panel : How to find mysql root password
Jan 30, 2018
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 Gibbson ?
How do i run both nginx and apache in same instance on centos

Hi...,

my server is based centos operating system and my webserver is already running on Apache.... i need to run both apache and nginx on same instance ... please help me to implement this concept...

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.