Forbidden

Forbidden

by Jim Feld -
Number of replies: 4
I have installed Moodle 1.0.6.4 on a MacOSX version 10.1.4 Server PHP 4.1.2 MySQL 3.23.52-max and Apache 1.3.26.

I was not able to access the admin page when that step came up in the installation. Instead, I got the following message Forbidden You don't have persmission to access /moodle/admin on this server.

I was able to bypass this and the installation of the databases went soothly. However, whenever I attempt to logout, I get the Forbidden message.

I am a relative newby to PHP and MySQL, and would appreciate any help.

Thanks
Average of ratings: -
In reply to Jim Feld

Re: Forbidden

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
It sounds like you need to configure Apache to recognise index.php as a default page:

http://moodle.com/doc/install.html#webserver
In reply to Martin Dougiamas

Re: Forbidden

by Jim Feld -
I had set the DirectoryIndex to index.php, in httpd.conf, as per the instructions.

The Forbidden message seems to only happen when trying to go to /moodle/

Any other access is allowed?! I can go to (www3.d300.kane.k12.il.us/moodle/index.php), I can login OK, but if I try to go back to the root (www3.d300.kane.k12.il.us/moodle/), I get the forbidden message, or if I try to logout (www3.d300.kane.k12.il.us/moodle/login/logout.php) I get the forbidden message.

If I login as the admin, I can set up new courses, assign teachers, and any of the other administrative tasks.

Any other suggestions will be most welcome.

Thanks--and have a very good Thanksgiving.
In reply to Jim Feld

Re: Forbidden

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
I'm 100% certain the DirectoryIndex setting still isn't set ... did you restart Apache after modifying the httpd.conf? Are you sure the httpd.conf you edited is the one being used by Apache?

(I'm in Australia, we don't have Thanksgiving, but have a good one yourself!)
In reply to Martin Dougiamas

Re: Forbidden

by Jim Feld -
Martin,

You were correct in your analysis. I thought I had done all of the things you mention, but evidently, the httpd.conf I edited was not being used by Apache. Mac OSX Server has a GUI configuration for the Web Server and I was able to add the index.php to the configuration that way and then when I restarted, I was able to access all of the pages.

Thanks very much for your help.

I have another question, but for the other forum.

Jim