Difference between revisions of "Drupal/C4/Hosting-a-Drupal-website/English"
(Created page with "'''Title of script:''' Hosting a Drupal website '''Author:''' Priya K '''Keywords:''' '''Video tutorial, Drupal, web hosting, cPanel, database import, export, content, websi...") |
|||
Line 595: | Line 595: | ||
|- | |- | ||
| style="border:1pt solid #000001;padding:0.097cm;"| Click '''Save Changes''' button | | style="border:1pt solid #000001;padding:0.097cm;"| Click '''Save Changes''' button | ||
− | | style="border:1pt solid #000001;padding:0.097cm;"| Now click on the '''Save Changes''' button. | + | | style="border:1pt solid #000001;padding:0.097cm;"| Now click on the '''Save Changes''' button in the top panel. |
|- | |- |
Latest revision as of 11:57, 4 May 2017
Title of script: Hosting a Drupal website
Author: Priya K
Keywords: Video tutorial, Drupal, web hosting, cPanel, database import, export, content, website
|
|
Slide 1:
Hosting a Drupal website |
Welcome to the spoken tutorial on Hosting a Drupal website. |
Slide 2:Learning Objectives
|
In this tutorial, we will learn to-
|
Slide 3:
System requirement To record this tutorial, I am using
|
To record this tutorial, I am using
You can use any browser of your choice. |
Slide 4a:
Pre-requisites
|
To practise this tutorial, you will need
|
Slide 4b:
Pre-requisites
|
You should also have basic knowledge of Drupal.
|
Slide 5:
Drupal hosting services
|
First let us learn about Drupal web hosting services.
|
To host a website, you will need the code and database of your local Drupal website.
| |
Click Configuration menu | We will clear the cache first.
To do that, click on the Configuration menu. |
Click Development -> Performance | Under Development, click on the Performance option. |
Remove checkmarks of Aggregate CSS files, Aggregate JavaScript files | Here, remove the checkmarks from Aggregate CSS files and Aggregate JavaScript files options. |
Click Save configuration | Click on the Save configuration button. |
Click Clear all caches | Now click on the Clear all caches button.
|
Open the File browser | Next we will keep our code ready.
|
Go to drupal-8.2.6-0 | Go to the folder where we have installed Drupal locally. |
Go to apps -> drupal -> htdocs | Now go to apps -> drupal -> htdocs folder. |
Point to htdocs folder
|
Inside this htdocs folder, we have the code of our local website.
|
Save it in Downloads folder. | I will save this in the Downloads folder on my machine.
|
Open phpMyAdmin | Next we will get our database ready.
|
Click bitnami_drupal8 | Click on the database named bitnami_drupal8. |
Click Export button | Click on Export button in the top panel. |
Choose Export method as Custom | Then choose the Export method as Custom. |
Under Object creation options, check Add DROP TABLE option | Under the section Object creation options, put a checkmark on Add DROP TABLE option. |
Click Go button | Scroll down and click on Go button at the bottom. |
Click OK button | Click on OK button to save the file. |
Open Downloads folde,
Point to bitnami_drupal8.sql, htdocs.zip
|
Open the default Downloads folder and see the exported sql file and the htdocs zip file.
|
Click Set Up button | Next let us learn to set up a cPanel.
|
Point to codingfordrupal.info | Here we have to choose our domain name.
|
Click Next button | Click on Next button. |
Click Asia -> Next button | Here we have to choose a data center.
|
Type username | In cPanel username, we have to give our username. |
Click Generate a password button | For the password, I will simply click on the Generate a password button.
|
Click Next button | Then click on the Next button. |
Point to wordpress
|
After this, it asks us whether we want wordpress to build our website.
|
Click Manage button | It could take several minutes to complete the setup.
|
Point to Website Name, IP Address | Our cPanel main window has opened now.
|
Please have a look at this page and explore the options thoroughly.
| |
Open the File browser
Go to drupal-8.2.6-0 |
Next we have to create a database in the cPanel.
|
Go to apps -> drupal -> htdocs -> sites -> default -> settings.php
|
Now go to apps -> drupal -> htdocs -> sites -> default -> settings.php
|
Scroll down
|
Scroll down to the end of the file.
|
Switch to cPanel main window | Switch to cPanel main window. |
Under Databases, click MySQL Database Wizard | Under Databases, click on MySQL Database Wizard. |
Copy database name from settings.php
|
Now copy the database name from settings.php file.
|
Click Next Step button | Click on Next Step button. |
Copy & paste username & password | Copy and paste the username and password. |
Click Create User button | Click on Create User button. |
Check ALL PRIVILEGES option | Put a checkmark on the ALL PRIVILEGES option. |
Click Next Step button. | Click on Next Step button. |
Click Return to MySQL Databases
|
Click on Return to MySQL Databases.
|
Click Home | Next let us learn to install Drupal in the cPanel.
|
Under Web Application, click Drupal | Under Web Applications, click on Drupal. |
Click install this application button | On the right side, click on install this application button. |
Point to codingfordrupal.info | Under Location, you can see the domain name. |
Under Version, choose 8.2.6 | Under Version, choose the version which you have installed in your local machine.
|
Under Settings, type Username &
Password |
Under Settings, we have to give our preferred username and password for the administrator.
|
In the Advanced, choose Let me manage these settings
|
In the Advanced section, we can set up the database, email and backup.
|
In the Database Management, choose Let me choose an existing database | In Database Management, choose Let me choose an existing database. |
In the Database Name, choose bitnami_drupal8 | In the Database Name, choose the database which we created earlier. |
In the Database Username, type bn_drupal and password | In the Database Username and Password, give the details from the settings.php file. |
In the Table Prefix, remove drupal_ | In Table Prefix, keep the field empty. |
Click Install button. | Now click on Install button. |
Click www.codingfordrupal.info | Once the installation is done, we can see our website name here.
|
Our website is successfully hosted.
| |
But we have to update it with our local content.
| |
Switch to the cPanel main window
Click Home button |
Switch to the cPanel main window and click on the Home button in the top panel. |
Open File Manager of cPanel | We will open the File Manager of the cPanel. |
Point to Web Root
|
Make sure that the Web Root option is selected.
|
Point to public_html
|
Now we are in the public_html folder.
|
Click Browse and select htdocs.zip file
|
Click on the Browse button and select the htdocs.zip file from the Downloads folder.
|
Close the window | Now close this window. |
Click htdocs.zip file | In the File Manager window, go to htdocs.zip file and click on it. |
Click Extract button | Now to extract this file, click on the Extract button in the top panel. |
Click Extract File button | In the popup window that appears, click on Extract File button. |
Double-click htdocs folder. | Once the file is extracted, double-click on the htdocs folder. |
Go to Sites | Now go to the Sites folder. |
Point to default folder
|
Here we will change the permission of the default folder.
|
Go to default folder, select settings.php
|
Then go to the default folder and change the permissions of the settings.php file.
|
Click Code Editor button | To open the settings.php file, click on the Code Editor button in the top panel. |
Click Edit button | Click on the Edit button. |
Scroll down
|
Scroll down to the end of the file.
|
Remove unix_socket line | Remove the unix_socket line. |
Click Save Changes button | Now click on the Save Changes button in the top panel. |
Click Up One Level button | Click on the Up One Level button in the top panel. |
Click Up One Level button | Once again, click on the Up One Level button.
|
click Select All button.
|
To select the files and folders, click on the Select All button. |
Click Move button | Click on the Move button in the top panel. |
Remove htdocs | In the file path, remove htdocs. |
Click Move Files button. | Click on the Move Files button. |
In side panel, go to public_html | In the side panel, click on the folder public_html.
|
Switch to cPanel main window | Next we have to import our local database to our live website.
|
In Databases, click phpMyAdmin. | Under Databases, click on phpMyAdmin. |
Click the database bitnami_drupal8 | In the side panel, click on the database which we created earlier. |
Click Import | Click on the Import button in the top panel. |
Click Browse button | Then click on the Browse button. |
Choose sql file | Now choose the sql file which we exported from our local Drupal. |
click Go button
|
Lastly, click on the Go button.
|
Type the website name | Now open a new tab in the browser and type your domain name in the address bar.
|
With this, we come to the end of this tutorial. | |
Slide 7:
Summary In this tutorial, we have learnt to-
|
Let us summarize.
|
Slide 9:
Acknowledgement
|
The video at the following link summarises the Spoken Tutorial project.
|
Slide 10:
Spoken Tutorial Workshops
|
The Spoken Tutorial Project Team conducts workshops and gives certificates to those who pass online tests.
|
Slide 11:
Acknowledgement
|
Spoken Tutorial Project is funded by
Government of India. |
This is Priya from IIT Bombay. Thanks for joining. |