Issues with .htaccess file in moodle 2.0 installation on wamp server 2.2 in windows 7

Issues with .htaccess file in moodle 2.0 installation on wamp server 2.2 in windows 7

by Neha M -
Number of replies: 3

Hi,

    I am trying to create a local environment for a moodle 2.0 based project on wamp server 2.2

     but after installation of moodle on wamp  , the system throws " 500: Internal error ".

       On further search it was found that in Apache error log , the error is : 

                               "    .htaccess  : All override not allowed here "

   I tried fixing this error by checking "rewrite module " in the Apache directives but the system always creates

                   broken .htaccess file in www directory of moodle .

Please help me in understanding the cause of the same. Thank you in Advance . smile

Please reply ... it is very urgent !

 

 

 

Average of ratings: -
In reply to Neha M

Re: Issues with .htaccess file in moodle 2.0 installation on wamp server 2.2 in windows 7

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

What are you doing installing a very obsolete/unsupported version of Moodle?

Other than that, show us the contents of your .htaccess file. You've got something in there you shouldn't have.

In reply to Neha M

Re: Issues with .htaccess file in moodle 2.0 installation on wamp server 2.2 in windows 7

by Ken Task -
Picture of Particularly helpful Moodlers

+1 to what Howard said concerning version ... but to answer your question about apache  ...

.htaccess takes it's 'permissions' (so to speak) from the main configuration file for apache ... in the case of a Wonder box I don't know where that is but it's name is either httpd.conf (.cnf) or apache2.conf (.cnf).

In that file there will be definitions for document root and contained in the settings for document root there is a setting for what to allow for overrides.   If you allow Override ALL then other overrides can be placed in .htaccess.   Override ALL for document root is not normally recommended but if on a Wonder machine Wndows 7 am assuming is NOT for production so, think it might be ok IF apache/mysql and thus Moodle access is not turned on as a service to be launched upon boot up automagically (what one doesn't know is running can hurt!).

Changing the config of apache does require restart of apache for the changes to take affect.

http://httpd.apache.org/docs/2.2/mod/core.html

http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

'spirit of sharing', Ken

In reply to Ken Task

Re: Issues with .htaccess file in moodle 2.0 installation on wamp server 2.2 in windows 7

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

...or there's an error in the .htaccess file wink