By robertdouglass on
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
.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
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.
-- 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:
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
--
Drupal Theming at
www.pitxels.com
Altering the vhosts file to solve
Browse to your Apache folder.
Browse to the subfolder conf/extra, from there.
You should have a virtual host block:
The "ExampleDomain" should be your domain, right?
Find the line:
AllowOverride AuthConfig FileInfo, if it exists, and change it toAllowOverride All.This is assuming that you're using vhosts. I don't understand how this works behind the scenes. Prior to setting up my vhosts file, I received 500 errors. It wouldn't be possible for me to add the line
AllowOverride Allto my virtual host block if it didn't exist. So, here's what I have:If this doesn't work, you should look at your Apache log files: apache/logs/error.log. You can get more specific error information via the latest entry of that file, after you recreate the error message. Then, the forum topic will also be more comprehensive and specific.
it works! thank you so much.
it works! thank you so much.
I had this same problem and
I had this same problem and it was due to the restrictions on my host that didn't allow me to add anything with 'Order allow,deny' or other things. So basically I had to comment out all the stuff that wasn't 'allowed' in order to get it to work.
Might want to switch hosts if this is a problem for you.