: Install Moodle to subdomain with Softaculous via cPanel I installed Moodle to a directory with Softaculous. Since it doesn't allow installing to a subdomain, after installing it I created a subdomain
I installed Moodle to a directory with Softaculous. Since it doesn't allow installing to a subdomain, after installing it I created a subdomain and pointed the destination (of the subdomain) to the previously created Moodle directory. Now when I go to the subdomain.example.com it says
Incorrect access detected, this server may be accessed only through "http://example.com/moodle" address, sorry. Please notify server administrator.
I must be doing something wrong, when installing it was very similar to these instructions.
Any suggestions would be much appreciated.
More posts by @Michele947
2 Comments
Sorted by latest first Latest Oldest Best
OK, I found out how to do it.
You need to create the subdomain
Once you are in softaculous (version I'm using [4.1.0]), choose whatever you need to install
Select which domain. If you created a subdomain correctly, then that will be listed.
Leave the directory blank and it will get installed to that subdomain.
Your question is misleading. You're not installing to a sub-domain. You installed to a directory, and are now trying to access it via a sub-domain. This becomes important because Moodle checks that it's only accessed via its configured address, in your case example.com/moodle
First, try editing the wwwroot value in the config file to match your desired sub-domain. Since your host seems to provide a simple way to point a sub-domain to a directory, that'll probably fix things.
Worst case, further down in that thread is a code hack that might work for you. It seems to
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.