Drupal Easyphp Installation
- Drupal Installation Error
- Drupal Installation Guide
- Easy Php Installation
- Drupal Installation
- Drupal Installation Error
- Drupal Easy Php Installation
- Drupal 8 Installation Guide
On this page
Drupal is a open source content management system based on PHP and distributed under the GNU General Public License. Drupal is a scalable and open platform for web content management, it's community provides more than 31,000 modules to extend the core functions and Drupal is used by at least 2.1% of all website on the internet. At the end of 2015, the Drupal project has released the new major version Drupal 8 that I will cover in this tutorial.
In this tutorial, I will show you how to install Drupal 8 on Ubuntu 15.10 with Apache as web server, MySQL as database backend and how to secure the website with SSL.
Prerequisites
- Ubuntu 15.10 - 64bit.
- Root privileges.
Step 1 - Install Apache and PHP
I will install apache and PHP (and some PHP modules that are required by Drupal) with apt, the Ubuntu package installer. Then we will enable the apache modules mod_rewrite and mod_ssl.
Update the Ubuntu repository and install Apache:
Then install PHP 5 and the PHP modules with the command below:
Now enable the Apache SSL and rewrite modules with the 'a2enmod' command. Restart apache to apply configuration changes:
Check that the modules are loaded with the command:
The output shall show the following lines:
So mod-rewrite and mod-ssl are loaded.
Now I will check that Apache and PHP are working well. Create a new file in the '/var/www/html/' directory. The file contains the phpinfo() command:
visit the server IP: 192.168.1.100/info.php
The result should be similar to this screenshot.
Delete the info.php file:
As a publicly accessible info.php file is a security risk.
Step 2 - Install and Configure the MySQL Database
In this step, we will install MySQL 5.6 and create a new database for Drupal. We will create a database with the name 'drupaldb', a new user 'drupaluser' with the password '[email protected]', and grant the user access to the database.
Install MySQL with command below:
The installation process will prompt for the MySQL password, choose a secure password.
Now log into the MySQL database with the user 'root' and the password that you have chosen above, then create the database and user for drupal.
You can use commands below:
The Database configuration is finished.
Step 3 - Install and Configure SSL
We will use SSL to enable secure access to Drupal. Create a new directory for ssl in the apache configuration directory, then create an SSL certificate with the OpenSSL command and change the permission of the certificate file.
Go to the apache directory, create a ssl directory and enter it:
Generate a self-signed SSL certificate:
Change the permission of the certificate file:
The new SSL certificate file is created.
Step 4 - Configure the Apache Virtualhost
In this step, we will create a directory for Drupal inside the /var/www directory and add a new virtual host configuration file for Drupal.
Now create a new file called 'drupal.conf' with vim that will contain the Apache virtual host configuration:
Paste the virtual host configuration below:
Replace the domain name www.mydrupal.co with the domain name of your Drupal website.
Save the file and exit.
Now test the apache configuration with command:
If you see 'Syntax ok', then the apache configuration is correct.
Now activate the Drupal virtual host and restart the Apache:
The virtual host is created and configured.
Step 5 - Install and Configure Drupal 8
We have to install git and drush before we will install Drupal. So let's install them with the following apt command:
Now go to the Drupal directory and download the new Drupal 8 version with the 'drush command'.
Move all Drupal files to '/var/www/drupal':
Dying to Win: The Strategic Logic of Suicide Terrorism is Robert Pape's analysis of suicide terrorism from a strategic, social, and psychological point of view. It is based on a database he has compiled at the University of Chicago, where he directs the Chicago Project on Security and Terrorism. Robert pape terrorism.
Drupal Installation Guide
Go to the directory 'sites/default' and copy the two configuration files 'settings.php' and 'services.yml':
Then create a new directory 'files' and change the permission of all files and folders in 'sites/default' directory:
Go to the '/var/www/' directory and change the owner of the drupal directory to the user and group 'www-data':
The shell part of the Drupal installation is finished, visit the drupal domain of your website 'www.mydrupal.co' and you will be switch to https connection automatically.
Easy Php Installation
Choose your language, I will use 'English' here.
Select 'Standard' installation profile.
When your server is ready for Drupal (as our server is when you used the installation steps above) then you will be passed to the 'Verify requirements' section and continue with the database configuration. Fill in the database details of the MySQL database that we created earlier:
Drupal Installation
Click on 'Save and continue' and wait until the installation process finished.
Drupal Installation Error
ow Configure the site, admin account, email, site name etc.
Drupal Easy Php Installation
Drupal is installed and configured.
Drupal 8 Installation Guide
Conclusion
Drupal is a content management system based on PHP, it is used by at least 2.1% of all websites on the internet. Until now, Drupal has released version 8 and provides many add-on modules that make Drupal is really useful. We can install Drupal on any server that supports MySQL or MariaDB as database, a web server like Apache or Nginx and the PHP programming language. Drupal is easy to install and configure.