Drupal is a free and open-source content-management framework written in PHP and distributed under the GNU General Public License. It is used as a back-end framework for at least 2.1% of all Web sites worldwide ranging from personal blogs to corporate, political, and government sites. It is also used for knowledge management and business collaboration.
The standard release of Drupal, known as Drupal core, contains basic features common to content management systems. These include user account registration and maintenance, menu management, RSS feeds, taxonomy, page layout customization, and system administration. The Drupal core installation can serve as a simple Web site, a single- or multi-user blog, an Internet forum, or a community Web site providing for user-generated content.
We can do it for you..
If you want we can install and configure Drupal for you on your live server and any server for you. We also provide hosting services on Amazon Web services (AWS) and Digital Ocean. You only need to send the e-mail on [email protected] & [email protected] with the details we will install it for you.
Prerequisites for Drupal
There are several prerequisite for installation of Drupal we need to install LAMP stack for Drupal, you can go to our previous article on “How to install LAMP stack in Centos” .
We can download drupal from their website or use following link
Now we will extract Drupal
tar zxvf drupal-8.3.6.tar.gz
Now we will move drupal into /var/www/html
mv drupal-8.3.6 /var/www/html/
Install Additional Packages
We need to install additional packages for drupal
yum -y install php-mbstring php-gd php-xml
After the installation of packages we will start setting up drupal..
Configuration of Drupal
Now go to drupal web directory
Now we will copy the default setting file and rename in setting.php as follows
cp sites/default/default.settings.php sites/default/settings.php
Now give write permission to setting.php file
chmod 755 sites/default/settings.php
Create Drupal database and user
Now we will create a database for Drupal. In this tutorial i will create a database named ‘drupaldb’ and a user named ‘drupal’so lets get login into MySQL console use following commands
mysql -u root -p
Now use CREATE command to create a drupal database
CREATE DATABASE drupaldb;
Now we create a user for drupal database
CREATE USER drupal@localhost;
Now we will set password for ‘drupal’ user
SET PASSWORD FOR drupal@localhost= PASSWORD("password");
Change password with your super secure password this is only for this tutorial
Now grant permissions to the new user for the database. Use following command change username and password with yours
MariaDB [(none)]> GRANT ALL PRIVILEGES ON drupaldb.* TO drupal@localhost IDENTIFIED BY 'password'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> FLUSh PRIVILEGES; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]>
Change Document root
Now we will change apache Document root so we can access drupal on our IP address.
Open/etc/httpd/conf/httpd.conf and replace the line 119 with following:
Restart the Services
Now we will restart services of the apache web server
systemctl restart httpd.service (For Centos/Redhat 7)
Access the Drupal Installer
Now it’s time to access the drupal installer
We can do it for you..
If you want we can install and configure Drupal for you on your live server and any server for you. We also provide hosting services on Amazon Web services AWS. You only need to send the e-mail on [email protected] & [email protected] with the details we will install it for you.
If you have any issue using this tutorial feel free to comment below..
Read Aslo: How to install glusterfs on centos 7