Wednesday, 13 January 2016

thumbnail

How-to-install-and-configure-Drupal-8.0.2-in-CentOS-6.7/Fedora21/Ubuntu-12.04,14.04

Introduction

Drupal is content management software. It's used to make many of the websites and applications you use everyday. Drupal has great standard features, like easy content authoring, reliable performance, and excellent security. But what sets it apart is its flexibility; modularity is one of its core principles. Its tools help you build the versatile, structured content that dynamic web experiences need.

It's also a great choice for creating integrated digital frameworks. You can extend it with any one, or many, of thousands of add-ons. Modules expand Drupal's functionality. Themes let you customize your content's presentation. Distributions are packed Drupal bundles you can use as starter-kits. Mix and match these components to enhance Drupal's core abilities. Or, integrate Drupal with external services and other applications in your infrastructure. No other content management software is this powerful and scalable.

1. To install Drupal-8.0.2 we need create a database :-

CREATE DATABASE drupal8;
CREATE USER drupal8@localhost IDENTIFIED BY 'drupal8';
GRANT ALL ON drupal8.* TO drupal8@localhost;
FLUSH PRIVILEGES;
exit

2. After that we need to download the latest drupal-8.0.2 :-

wget https://ftp.drupal.org/files/projects/drupal-8.0.2.tar.gz

3. Now extract and copy the content to drupal8 directory :-

tar -xvf drupal-8.0.2.tar.gz
mkdir /var/www/html/drupal8
cp -av drupal-8.0.2/. /var/www/html/drupal8/

4. After that change the ownership and permission :-

For CentOS/Fedora21

cd /var/www/html/
chown -R apache:apache drupal8
chmod -R 755 drupal8

For Ubuntu-12.04/14.04

cd /var/www/html/
chown -R www-data:www-data drupal8
chmod -R 755 drupal8

Restart the web service and enable rewrite mode :-

service httpd restart
service apache2 restart

Enabling rewrite mode in Ubuntu :-

sudo a2enmod rewrite
sudo service apache2 restart

Enabling rewrite mode in CentOS/Fedora :-

# vim /etc/httpd/conf/httpd.conf

Change as per given below

<Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

5. You need to install php-opcache for installation to proceed :-

yum install php-opcache.x86_64
service httpd restart

sudo php5enmod opcache
sudo service apache2 restart 

6. Open the browser for GUI installation :-

http://localhost/drupal8

5.1 Select the Language :- English



5.2 Select the profile as per your scenario :-



5.3 Enter the database details which we created earlier :-



5.4 Configuration of Site will appear insert the details :-




Click  on "Save and Continue"



For Admin Login with the credential given above during installation:- 



That's it now you can enjoy using Drupal-8.0.2 the latest version of Drupal till the time of writing this article.

Please Do Comments, Likes and share.




Related Posts :

Subscribe by Email

Follow Updates Articles from This Blog via Email

No Comments