Drupal is another well known CMS (Content Management System) for the development of complex websites. Drupal is very powerful, flexible and developer friendly. Drupal can be used to develop complex websites like community portals etc, which have multiple users and requires complex data organisation.
Drupal is a totally free, open source project developed using PHP and it requires a database to store its data. Drupal supports almost all types of databases like MySQL, PostgreSQL and SQLite. Drupal has great features, like easy content creation, reliable performance, and excellent security.
The recently launched Drupal 8 is the biggest update in it's history. With this update, creating website with Drupal became much easier, even for a normal user. Drupal 8 is available in more than 100 languages and all the inbuilt themes are rewritten now, making them responsive. Drupal has more than 30,000 modules and themes to extend its features.
In this tutorial we are going to learn how to install Drupal on a shared hosting environment. We will also learn how to install Drupal manually as well as automatically using Softaculous. We will also go through the basics of creating a website with Drupal.
Features of Drupal
Although Drupal has many features, here are a few of the more notable ones -
Total control over Users roles and permission to access different parts and functions of website.
Drupal provides you flexibility to add different types of content for example articles, blog posts or news stories etc.
By Default Drupal has its own user tracking and analytics, but it can be easily integrated with other analytics tools like google analytics etc.
Drupal is responsive, both in frontend and backend thus it adopts the screen size of user. You can also administer Drupal using your mobile phone.
Drupal provides you full customisation of menus and categories of a content type.
Inbuilt Search Engine Optimisation, you can provide meta information of any page on Drupal. Drupal automatically generates sitemaps for your website.
Drupal can be installed on any platform, like shared hosting, VPS or dedicated servers. As we are going to install Drupal on shared hosting, you will only need a shared hosting account. If you're looking for a host you can always check out our own web hosting packages all of which support Drupal.
You can install Drupal by creating a database and uploading the files to your web hosting. You can also install Drupal using Softaculous app installer which is described below.
Download Drupal Core by browsing the official website of Drupal. It is recommended that you download the installer package of latest version.
Login to your cPanel account and find the files section, click on File Manager link.
In File Manager, navigate to your web root directory, which is public_html. Click on the upload link and browse to the downloaded package to upload it. You may also drag and drop the package to the upload window.
You will see that the files you have extracted are not in public_html but in another directory Drupal-8.x.x. You will need to move all the files to public_html, you can do so by selecting all the files and then click on move button from top menu. Now you can move them to public_html folder.
Another method to upload the files is using FTP. You can extract the compressed package on your computer and use any FTP client like FileZIlla to upload all the extracted files to your web root directory. Make sure that you upload the files to public_html directory.
After uploading the files you will need to create a MySQL database to store Drupal's data. Drupal also supports SQLite, which stores the entire database into a single file on disk, hence it is not necessary to create a MySQL database to install Drupal. But it is highly recommended that you use a MySQL database to store Drupal's data because using SQLite has many disadvantages. There is no user management in SQLite and it is very slow compared to other database management systems. It should not be used to host multi user applications. SQLite should only be used when you do not have access to MySQL databases.
To create a database, go back to the cPanel dashboard, find the Databases section and click on MySQL Database Wizard. In the MySQL Database Wizard, you will see the Step 1 to create your database. Enter the desired name of database you want to create.
Click on the button Next Step. In Step 2 you will create a user for your database who will have full access to the database which we have created. Enter the desired username and password for your database user. Make sure that you use a strong password. You can also use password generator to generate a strong password. Click on Create user button.
In Step 3 you will Add the user to the database, It is recommended that you provide all the privileges to the user, just select ALL PRIVILEGES checkbox and click on the button Next Step. You should now get a success message that the user is successfully added to the database.
**Note: ** By default cPanel add a prefix before your database name and database username to prevent creation of identical databases. Please note that whenever you will be using the database you will have to provide full database name which is YourAccountPrefix_DatabaseName and full database user, which is YourAccountPrefix_DatabaseUser. For example full database name will be example_Drupal and full user name will be example_DpUser.
Now as we have our database and files ready, we can proceed with the installation through front end. Access your website through your web browser by entering your domain in the address bar. If your website is example.com then go to
You will see something similar to the screenshot below.
Choose the default language for your website and click on Save and continue button. Next you will be asked about the profile for your Drupal installation. If you are a beginner, choose Standard installation as it has all the preconfigured default features that comes with Drupal for example RSS feeds, Analytics etc. If you are a Drupal developer and want to create the website from scratch, choose the minimal installation option. Click Save and continue button to proceed further.
Next you will be taken to the interface where you will need to review the requirements of the server. Drupal needs minimal requirements and most shared hosting servers provides that. Scroll down below and click on Proceed further link. If there is a critical requirement is missing on the server, ask your hosting provider for assistance.
In this step you will have to provide the details of your database. Select the database type, from MySQL, MariaDB or equivalent. As we have created our database in MySQL, we will select MySQL, but if you don't have access to MySQL database, you can also select SQLite. For MySQL enter the database name, username and password which we created earlier. For SQLite, provide the filename and path to store the database. It is highly recommended that you store its data file into a hidden directory which starts with a period( . ).
In final step you will need to configure your website. Provide a name for your website in Site name field. Enter administrative email, all critical notifications and registration information will be sent to this email address. Next provide a username and password for the administrator account. Select the default country and timezone for your website and select the update notifications options. Click on Save and continue button.
You can also install Drupal automatically using Softaculous app installer. Open your cPanel account, in the Software section click on Softaculous App Installer. In Softaculous App Installer section click on Drupal link from sidebar under Portal/CMS.
Click on Install Now button, you will see interface to provide details of installation. In Software Setup, choose the version you want to install. It is recommended that you install the latest version. Choose the protocol you want your website to use while loading, you can choose http:// or http://www. or you can choose to load your website securely by selecting https:// or https://www.. If you choose the secured protocol then you will need to configure SSL/TLS for your website. Now choose the domain on which you want to install Drupal. If you are planning to install Drupal on the main website, not in any folder, remove the text from In Directory field. It should be empty because if there is any text in this field, Softaculous will create a directory and will install Drupal in that directory.
Under CRON Job, you will need to specify when to run a cron job. Drupal requires setting up Cron Job to automate certain tasks. Next you will need to provide a name for your website in Site Name field.
Now enter your administrative username and password and click on Login button. Once you are logged in you will be taken to your profile. Additionally you will see two menus on the top, you can navigate through admin panel using them.
Creating a Basic Page
To create a basic page, goto Home > Content > Add Content > Basic page. In the Create a Basic Page interface, provide a title for your page in Title field. Add the content of your page into Body text field. You can also use the tools provided in the text area to make your page more attractive. Below you can choose the Text format for the content of the page. Before putting your page live you can also see a preview of the page by clicking on Preview button.
Before publishing the page, you may also check the settings on the right sidebar. In Menu settings, you can add a link to this page on a menu. Select the checkbox before Provide a menu link text. Provide the title of the menu link and Choose a parent item under which the menu is to be added. Also provide a weight for your menu item. Weight is used for sorting of the links of menu. Links having lower weight are displayed before and links having height weight afterwards.
In URL Path Settings, you can provide an alternative URL for your page, just provide a text for your custom URL. For example for About us page your can provide /about-us alias. If you leave this field empty, Drupal will automatically assign an alias for your page. It is a good practice to assign an alias, as the alias assigned by Drupal are not SEO friendly.
In Authoring Information, you can provide a username of another user as the author of the page. You can also change the date and time of creation of the page.
In Promotion Options, you can promote the page to front page by selecting Promoted to front page checkbox. If you want this page to be displayed on the top of the lists, you may select Sticky at top of lists checkbox.
Once done you can Save and Publish the article by clicking Save and publish button. If you wish to save the article without publish it, click on the down arrow and select Save and unpublished. You can create as many pages as you want, and add them to your website.
Setting your Homepage
Go to System Configuration by browsing to Home > Administration > Configuration > System and then in Front Page options enter the URL of the page you want to promote as home page.
If you have not provided a custom URL at alias option on sidebar during creation of page, then it should be something like /node/x, where x can be any number. Click on Save Configuration button and then check back the homepage of your website. You will see the content of the page on homepage.
To add an article, which can be a blog post, news or press release go to goto Home > Content > Add Content > Article. In the Create Article interface, provide a title for your article, enter the content of blog in body field. Enter tags for your article separated by a comma. Finally choose a featured image for your article or blog post. Featured images and tags are optional. Before saving the article you may configure the article option on sidebar. All the options are same as the options at static page except comment settings. Comments can be enabled or disabled on an article. If you choose open, any user can post a comment on your article, if closed user can not post comment on your article. Click on Save and publish button once done.
To add a contact form go to Home > Administration > Configuration > Contact forms and click on Add contact form button. Enter a label for your contact form, which can be anything like feedback or contact us. Now enter the recipients who will get the email if somebody submits the contact form. To add multiple address, separate them with comma. In Auto-reply field, you can specify a message which will be immediately sent to them automatically. You can also make this contact form as default contact form on website.
Click on Save button to save the form. Once the form is created, you will be taken back to the list of available contact forms. Click on Edit button next to the contact form we have created.
By default Drupal will display the sender name, sender email, subject and message fields in contact form. If you want to add an extra field, click on manage field tab. To add a new field click on Add field button, in the add field interface, select the type of field from drop down menu. Now provide a label for the field and click on Save and continue button.
Now you will be taken to settings of that field, this is different for each field, for example when adding a number type field, you will be asked how many values can be entered in number type field, you can provide a limited number or unlimited numbers. Once configured field settings, click on Save field setting button.
In next interface you can set a help text for your field, which will be displayed under the field in small letters. Choose if the field is required or not and provide a default value for the field if you want.
Click on Save settings button and you will be taken back to the list of fields. In same way you can create as many fields you want.
To manage how your form is displayed click on manage form display tab. You can arrange and deactivate the fields form here. To arrange the fields, just drag and drop the field in desired location. To deactivate an item, select the hidden attribute in widget option for that item.
In the manage display tab, you can manage where the label for that field will be displayed. You can choose to display label either above the field, or Inline or you can also hide the label. Click save button once done.
Adding the Contact Form to the Main Menu
To add a recently created contact form in main menu, go to Home > Administration > Structure > Menus, and click on the edit menu button next to Main navigation. Now click on add link button. Now enter the menu link title, which can be anything sucuh as Contact Us. In link field enter /contact. Provide the weight for the menu item, you can also fill all the other information. Click Save button to create a link for the contact form in the menu. Now you can visit your website to see the contact form.
You can change the look and feel of your drupal website by changing the theme. To install a new theme to your website, go to Home > Administration > Appearance and click on the Install new theme button. You can install themes in Drupal using two modes. You can either copy and paste the URL of the theme file in Install from URL field. Theme file must be compressed archive. Another method is that you download the file from source to your computer and upload the theme archive to install it.
You can browse the official Drupal themes project website for free themes. Find the theme you want to install and in download section of that theme, you can either copy the link or you can download the tar or zip archive to your computer. Make sure that the theme you are installing is compatible with your version of Drupal. For example, if you have Drupal 8 installed, then you must install the theme with version 8.x.
Now click on the Install newly added themes link, you will be taken back to Appearance settings. Scroll down to find your newly added theme in the Uninstalled themes section on that page. You can either install the theme by clicking on Install link, or you can directly install and activate the theme by clicking Install and set as default link.
You can also change Administrative theme through here. Find and install the theme using same way we have installed the default theme. Make sure that the theme you are installing and will be activating for Admin theme compatible with administrative dashboard. Once installed, go back to the Appearance setting page. Scroll down to find Administration theme section. Select the theme from drop down menu and click on Save configuration button to activate new administration theme.
To change the settings of a theme, click on Settings link under the active theme. You can control the display settings for your theme here. In the Toggle display section you can enable or disable the display of certain elements. In Logo image settings, you can change the logo of your website. Unselect the option of Use the default logo supplied by the theme and then either paste the URL of your logo, or you can upload the logo also. You can also change your Shortcut logo or site icon settings, you can also supply the URL here, or you can upload the icon. If your theme supports social media icons, you will find the option to set the links to your social media pages here. In Copyright information you can enter your custom copyright text. Click Save configuration button once done.
Enter the title of the menu, and provide and administrative summary for your menu. Click on Save button to add the menu. Once the menu is added, you will be taken to the list of links, as there are no links yet, you can add a new link by clicking Add link button. Provide a Menu link title, which will be shown in menu. Now provide a link for the menu, a link can be anything, for example it may be a page or article in your website, or it may be an external link. Select Enable link to enable the menu link, enter description if you want. Choose a parent link if the link you are adding is a child link to any other link. Enter weight for your link, menu items having low weight are displayed before and menu items having higher weight are displayed later. Click Save button to add the menu link.
You can add more blocks or elements in your website. For example, if you want to display the newly created menu on website, you will have to edit the layout of website. To edit the layout of website go to Home > Administration > Structure > Block layout.
In Block Layout interterface, you will see the layout of your website using different themes. We will need to update only the active theme's layout. You can place your menu on the different regions of theme. To place the menu in a region, click on the Place block button next to the name of region where you wish to put the menu. Then select the block or element which you wish to place and click on Place block button.
Then you will be taken to configuration of the block, where you can restrict the menu to appear on selected pages or selected content types or for selected users. Click Save button place your menu in the region.
You can now visit your website to see the new menu on the region you have chosen. In same way you can place more elements in your website.
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...
You may sometimes need to manually adjust the PHP settings on your cPanel server – for example if a site is hitting the PHP memory, or file size upload limit. WHM allows you to quickly change the settings of any PHP version installed on the server when needed, using the...