index.php redirects to webmin

index.php redirects to webmin

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!
評比平均分數: -
In reply to Jon Bauerle

Re: index.php redirects to webmin

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 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

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

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 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

Martin Dougiamas發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 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'.