Drupal is a free open source content-management framework written in PHP and distributed under the GNU General Public License. Drupal provides a back-end framework for at least 2.3% of all websites
Drupal database
First let's create Drupal's database in command line. We connect to Drupal database instance running on 3307
$mysql-uroot-p-h127.0.0.1--port=3307
Remember the password of the user root is devopstask
Then we create a database for Drupal called drupal_db
>CREATEDATABASE drupal_db;
We create a user drupal with new password drupal_pswd
>CREATE USER 'drupal'@'127.0.0.1' IDENTIFIED BY'drupal_pswd';
Then we grant the user drupal full access to the drupal_db
>GRANT ALL ON drupal_db.*TO drupal@127.0.0.1 IDENTIFIED BY"drupal_pswd"WITHGRANTOPTION;
Drupal installation
We download a package of drupal 7 from Drupal's website , we unzip it and then move it to /var/www/drupal
When running the website, some PHP extensions like gd, xml, SimpleXML, dom are missing. We install them with
We also install the Unicode PHP library extension and php-curl
After all requirements are verified, we set up the database with the database name , database username and password previously created.
Database name
drupal_db
Database username
drupal
Database password
drupal_pswd
Database host
127.0.0.1
Database port
3307
Table prefix
dp
We save and continue
Configure site
We set these information
SITE INFORMATION
After this, we have our Drupal site successfully configured
Drupal private files folder
To configure private file, we create a private folder completly outsite the server root at /home/ubuntu/drupal_private_files/ which can not be directly accessed by Nginx. And we set the right permission.
Then on Drupal website we go to Configuration --> Media --> File system . We set "Private file system path" to /home/ubuntu/drupal_private_files/
And we choose "Private local files served by Drupal." as Default download method
Installation of Drush
Drush (for Drupal Shell) is a command line shell and scripting interface for Drupal We install it with the terminal via apt package manager
Site name : Task for Junior Devops/Sysadmin
Site e-mail address : info@task.woezzon.com
SITE MAINTENANCE ACCOUNT
Username : admin
E-mail address : info@task.woezzon.com
Password : drupal_site_pswd
SERVER SETTINGS
Default country : United Kingdom
Default time zone : Europe/London