index.php redirects to webmin

index.php redirects to webmin

by Jon Bauerle -
Number of replies: 4
After a new install, index.php re-directs to webmin on port 10000.  I'm a little new to moddle, and haven't seen anything on this searching the site and google.  Any suggestions?

Thanks!
Average of ratings: -
In reply to Jon Bauerle

Re: index.php redirects to webmin

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Please open up the config.php file in the root folder of your Moodle site and check the setting of "$CFG->wwwroot". It should look something like the following:

$CFG->wwwroot = "http://www.myserver.com/moodle";

Is it set to something reasonable? If not, you should change it to what you think it should be.

If "$CFG->wwwroot" looks OK, can you see "webmin" mentioned anywhere else in the "config.php" file? That may give you a hint as to what needs to be changed.
In reply to Gordon Bateson

Re: index.php redirects to webmin

by Jon Bauerle -
That line directs to my domain, which as moodle installed in the root of my public_html dir. And unfortunately, there's no reference to port 10000 *or* webmin in the config.php. Another odd note is, if I go to domain.com/admin/index.php, it also redirects to webmin.
In reply to Jon Bauerle

Re: index.php redirects to webmin

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
I don't think Moodle is redirecting you to "webmin".
  • Can you access php files on your website ok?
    e.g. http://www.yourdomain.com/jon.php

    where "jon.php" contains the following:
    <html><body>Hi Jon! <?php print "PHP is working!" ?></body></html>

In reply to Jon Bauerle

Re: index.php redirects to webmin

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Your server has mapped the URL /admin for it's own purposes.

Edit Moodle's config.php and change or add this line

   $CFG->admin = 'myadmin';

where 'myadmin' is anything but 'admin'.