Posted by robertDouglass on August 17, 2004 at 12:43pm
I'm trying to install the latest from CVS on a machine that is not my own and get a 500 Internal Server Error when trying to access Drupal for the first time. The Apache error log says this: .htaccess: order not allowed here. Anybody familiar with this?
The lines in the .htaccess that this seems to pertain to are these:
# Protect files and directories from prying eyes:
<Files ~ "(\.(conf|inc|module|pl|sh|sql|theme)|Entries|Repositories|Root|scripts|updates)$">
order deny,allow
deny from all
</Files>
I looked at my 4.4.2 installation, however, and these lines are the same, so I don't understand why there is a problem. I'm using Apache/1.3.26
-Robert
Comments
akkk!
Can someone please close my <strong> tag?
Why can I edit this comment but not the original forum post?
- Robert Douglass
-----
visit me at www.robshouse.net
my Drupal book | Twitter | Senior Drupal Advisor, Acquia | Advisor ICanLocalize
.htaccess: DirectoryIndex not allowed here
Commenting out the offending lines from above reveals the next error:
.htaccess: DirectoryIndex not allowed here
I thought the info here http://drupal.org/book/view/9909 might help, since I had overlooked it, but the problem persists.
- Robert Douglass
-----
visit me at www.robshouse.net
my Drupal book | Twitter | Senior Drupal Advisor, Acquia | Advisor ICanLocalize
Check http.conf file
Specifically for the AllowOverride dirctive, chances are that its set
too restrictive for the directory you are accessing. Try changing it
to AllowOverride All and restart the server.
AllowOverride Limit
Specifically the 'Limit' option would allow this.
'Allow use of the directives controlling host access (Allow, Deny and Order).'
(http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride)
I believe it should look something like this:
AllowOverride AuthConfig Options FileInfo Limit
(only AuthConfig is missing to make this equal 'AllowOverride All')
You will need the following
You will need the following override options located within the Directory context.
<Directory "/some/dir">AllowOverride FileInfo Limit Options Indexes
</Directory>
-- david
-- david
XAMPP on OSX
I had the same problem, which I was able to fix by editing http.conf.
I updated the Allowoverride directive as follows:
<Directory "/Applications/xampp/xamppfiles/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks ExecCGI Includes
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
My webhosting did this:
I had to delete this lines out of .htaccess
# Protect files and directories from prying eyes.
Order allow,deny
# Set the default handler.
DirectoryIndex index.php
Problem sovled .
Ubuntu 10.04
In Ubuntu 10.04 edit:
/etc/apache2/sites-available/defaultto allow .htaccess over ride
Change AllowOverride None to All