Knowledge Base
MilesWeb / Moodle Hosting

Learn to Install Moodle on Subdomain

Approx. read time : 2 min

Want to install Moodle on your subdomain? Here’s a guide.

Suppose you have a domain named and want to install Moodle on the subdomain ““.

You will need to first create a subdomain “abc”. This can be done as below:

Login to your cPanel account.

Go to Domains section and click on Subdomains. Create a subdomain “abc” here by clicking on Create button.

You will then receive a message for successfully creating a subdomain.

Then go to cPanel dashboard -> Software -> Softaculous.

Search for Moodle in the search bar in the top left-side corner and click on it. You will see the Moodle installation dashboard.

Click on Install Now.

Under Software Setup, go to Choose Installation URL and click on the drop-down menu to select your subdomain. Ensure you note down the password. Then click on Install button at the bottom.

Once the installation is done you will need to access the files using File Manager of cPanel or an FTP client. Here search for the config.php file to be placed at /public_html/abc/config.php.

Open the file and search for the below line:

and change it to the below line:

That’s it!

You have learned to install Moodle on the subdomain.

Also Read

Learn to Configure the User Permission Policies in Moodle

How to Setup an SMTP Connection in Moodle?

Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.