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

robertdouglass’s picture

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

robertdouglass’s picture

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

dh1000bmw’s picture

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.

degerrit’s picture

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')

daspez’s picture

You will need the following override options located within the Directory context.

<Directory "/some/dir">
     AllowOverride FileInfo Limit Options Indexes
</Directory>

-- david

hunthunthunt’s picture

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>

thabrewer’s picture

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 .

pitxels’s picture

In Ubuntu 10.04 edit:

/etc/apache2/sites-available/default
to allow .htaccess over ride

Change AllowOverride None to All

--
Drupal Theming at
www.pitxels.com

Fohsap’s picture

Browse to your Apache folder.
Browse to the subfolder conf/extra, from there.
You should have a virtual host block:

## ExampleDomain ##
<VirtualHost>
example
</VirtualHost>

The "ExampleDomain" should be your domain, right?
Find the line: AllowOverride AuthConfig FileInfo, if it exists, and change it to AllowOverride 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 All to my virtual host block if it didn't exist. So, here's what I have:

<VirtualHost *:80>
ServerName domainname_example.com
DocumentRoot "C:/server/www/drupal_DocumentRoot"
<Directory "C:/server/www/drupal_DocumentRoot">
Options +Indexes FollowSymlinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

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.

getze_v’s picture

it works! thank you so much.

farse’s picture

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.