Some hosting interfaces (e.g. cobalt and ensim) use the following method to access the administration panel for the site
www.mysite.com/admin
consiquently when mooodle is set up on one of these servers selection of say the "site settings" when logged on as admin results in an attempt to access:
www.mysite.com/admin/site.php
This fails as it trys to run the web server hosting interface.
How can I get round this, maybe by changing the name of the admin directory to madmin and then changing all the refferences to the /admin direcory to /madmin.
Any help would be appreciated
It sounds to me lke you installed the moodle right at the top of your web directory, not in a "moodle" subdirectory? What if you made a moodle subdirectory and installed moodle there. Then in your top level directory you could make an index that automatically redirects to the moodle site/directory? It's a little bit awkward but the gain lies in not having to make deep changes to the code. It could run normally then and call to http://mysite.com/moodle/admin and not threaten the http://mysite.com/admin panel.
Just a thought.
best.
Just a thought.
best.
A new feature of 1.0.9 (and current nightlies) is that you can rename the admin directory and tell Moodle about it using
$CFG->admin = "myadmin";
in config.php
$CFG->admin = "myadmin";
in config.php
Also Ensim uses /user as well. I have got round this by editing the /myadmin/user.php and
changing line 4
require_once("../user/lib.php"); to
require_once("../myuser/lib.php");
as well as any other references to user directory.
I can now create users, but when i try to update it takes me to ensim user login page.
If i change the following in /myadmin/edit.php
redirect("../admin/user.php", get_string("changessaved"));
to
redirect("../myadmin/user.php", get_string("changessaved"));
and it now seems to work.
Thought this may be of use
That feature of allowing a different admin directory sounds really good.. and it would also be great if you could add a variable to allow for a different user directory.
As someone else already mentioned, ensim uses the directory 'admin' and 'user' by default, so only being able to rename the admin directory would really do me no good :p
Thanks a lot for your excellent work on an excellent piece of software!
As someone else already mentioned, ensim uses the directory 'admin' and 'user' by default, so only being able to rename the admin directory would really do me no good :p
Thanks a lot for your excellent work on an excellent piece of software!