How To Install Drupal CMS On Centos 7.6
- 00:33 rpm -q centos-release
- 00:48 mysql -u root -p
- 02:10 wget https://www.drupal.org/download-latest/zip
- 02:27 unzip zip
- 02:40 mv drupal-8.7.10 /var/www/drupal
- 02:54 chown -R apache:apache /var/www/drupal
- 03:06 chmod -R 755 /var/www/drupal
- 03:19 vim /etc/httpd/conf.d/drupal.conf
- 04:25 systemctl restart httpd
Installation Of Drupal CMS On Centos 7.6
Installation process
Check the centos version by using the following command
[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64
Create the database for durpal cms
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.64-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 drupaldb;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create user 'drupaluser'@localhost identified by 'Linuxc#45';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on drupaldb.* to 'drupaluser'@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
Download the Drupal installation package using wget command
[root@linuxhelp ~]# wget https://www.drupal.org/download-latest/zip
--2019-11-22 05:20:19-- https://www.drupal.org/download-latest/zip
Resolving www.drupal.org (www.drupal.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to www.drupal.org (www.drupal.org)|151.101.2.217|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ftp.drupal.org/files/projects/drupal-8.7.10.zip [following]
--2019-11-22 05:20:20-- https://ftp.drupal.org/files/projects/drupal-8.7.10.zip
Resolving ftp.drupal.org (ftp.drupal.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to ftp.drupal.org (ftp.drupal.org)|151.101.2.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28619523 (27M) [application/zip]
Saving to: ‘zip’
100%[=============================================================>] 28,619,523 1.12MB/s in 25s
2019-11-22 05:20:46 (1.10 MB/s) - ‘zip’ saved [28619523/28619523]
Extract the downloaded package using unzip command
[root@linuxhelp ~]# unzip zip
Archive: zip
creating: drupal-8.7.10/
inflating: drupal-8.7.10/.csslintrc
inflating: drupal-8.7.10/.editorconfig
inflating: drupal-8.7.10/.eslintignore
extracting: drupal-8.7.10/.eslintrc.json
inflating: drupal-8.7.10/.gitattributes
inflating: drupal-8.7.10/.ht.router.php
inflating: drupal-8.7.10/.htaccess
inflating: drupal-8.7.10/INSTALL.txt
.
.
.
inflating: drupal-8.7.10/vendor/zendframework/zend-feed/src/Writer/Version.php
inflating: drupal-8.7.10/vendor/zendframework/zend-feed/src/Writer/Writer.php
inflating: drupal-8.7.10/vendor/autoload.php
inflating: drupal-8.7.10/vendor/.htaccess
inflating: drupal-8.7.10/vendor/web.config
inflating: drupal-8.7.10/LICENSE.txt
Move the Drupal cms directory to apache root directory
[root@linuxhelp ~]# mv drupal-8.7.10 /var/www/drupal
Set the ownership and permission for Drupal cms
[root@linuxhelp ~]# chown -R apache:apache /var/www/drupal
[root@linuxhelp ~]# chmod -R 755 /var/www/drupal
Configure the virtual host for accessing the Drupal cms
[root@linuxhelp ~]# vim /etc/httpd/conf.d/drupal.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/drupal
<directory /var/www/drupal>
allowoverride all
allow from all
</directory>
</virtualhost>
Once all the step is completed restart apache service
[root@linuxhelp ~]# systemctl restart httpd
Now switch to browser and enter your domain name Select the language Select the profile
Configure the database Installation is in process Configure the site setting Snap7 This is the dashboard of drupal cms This is the method to install drupal cms on centos 7.6
Comments ( 0 )
No comments available