Site icon installvirtual

How to install drupal 7 on Centos 7 / fedora

install drupal 7 on centos 7

How to install drupal 7 on Centos 7install drupal 7 in centos 7

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. You only need to send the e-mail on chetan@installvirtual.com & installvirtual@gmail.com 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” .

Read Also: How to install wordpress on centos 7
Read Also: How to install Joomla on centos 7

Download Drupal

We can download drupal from their website or use following link

wget http://ftp.drupal.org/files/projects/drupal-7.15.tar.gz

Now we will extract Drupal

tar zxvf drupal-7.15.tar.gz

Now we will move drupal into /var/www/html

mv drupal-7.15 /var/www/html

mv drupal-7.15 /var/www/html

Download 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 drupal..

Configuration of Drupal

Now go to drupal web directory

cd /var/www/html/drupla-7.15

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

GRANT ALL PRIVILEGES ON drupaldb.* TO drupal@localhost IDENTIFIED BY 'password';                       FLUSH PRIVILEGES;                                                                                      exit

Restart the Services

Now we will restart services of the apache web server

service httpd restart  (For Centos/Redhat 6) 

systemctl restart httpd.service (For Centos/Redhat 7) 

Access the Drupal Installer

Now it’s time to access the drupal installer

  http://ipaddress-of-server/drupal7.15

 

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 chetan@installvirtual.com & installvirtual@gmail.com 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

Exit mobile version