Penawaran Terbatas - mulai dari $0.80/bulan
00
HARI
00
JAM
43
MENIT
03
DETIK
Beli Sekarang
×

Pengetahuan Dasar

Temukan artikel terkait fitur, petunjuk penyelesaian masalah,
dan informasi teknis lainnya yang berkaitan dengan layanan hosting Hosting24.

How to install Moodle on subdomain?

Disunting pada:
moodle subdomain moodle on subdomain

In many cases people want to install Moodle on a subdomain, instead of a subdirectory as our Auto Installer allows.
Let's assume we've the domain name example.com and we want to install Moodle on the subdomain "http://e-class.example.com".

The first thing we need to do is create the subdomain "e-class". 
This can be done by following:
Home > Hosting > example.com > Domains > Subdomains

It's this section on your account's control panel:

Once you've created the subdomain you'll see something like that:

We're then ready to install Moodle via Auto Installer, which can be accessed at:
Home > Hosting > example.com > Website > Auto Installer

We type "Moodle" on the search, click on its icon and then we configure the setup.
On the "Url" field we use the same name as the subdomain we created earlier, in this case "e-class" and we press on the Setup button.

A couple of minutes later the installation will be completed and Moodle will be accessible at http://example.com/e-class, but we want it at http://e-class.example.com instead.
No worries, changing this will be a piece of cake!

We will have to access our files by using File Manager of cpanel or an FTP client, whatever you prefer.
Once we're connected, we've to find the "config.php" file which should be in our case be placed at /public_html/e-class/config.php

We open it and we search for the line:
 

$CFG->wwwroot   = 'http://example.com/e-class';

and we simply change it to

$CFG->wwwroot   = 'http://e-class.example.com';

And that's it!
Your Moodle is now accessible on your subdomain! :)

  • Akses Website Builder
  • Jaminan Uptime 99.9%
  • Live Support 24/7
  • Powerful Control Panel
  • Jaminan Uang Kembali 30 Hari
Penawaran Terbatas!
Mulai dari
$
0
80
/bln
Hemat 90%
Beli sekarang