403 Forbidden

cjscullyca - November 10, 2009 - 08:34

I've done several Drupal installs before, and have never run into this problem until now. I've got drupal installed in /var/www/drupal. I'm doing a fresh install on a development box running Debian Lenny.

I've got the following directives configured in apache:

DocumentRoot /var/www/drupal/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/drupal/>
   RewriteEngine on
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com/?$ [NC]
RewriteRule ^(.*)$ mydomain.com$1 [L,R=301]
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

When I opened a browser and went to www.mydomain.com/install.php, I got the following 403 error.

"You don't have permission to access /install.php on this server.
"Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at www.mydomain.com Port 80"

I've checked the file permissions on install.php and they're set to 644 and the permissions on the directory are set to 755.

I commented out the lines from the .htaccess file that restrict access to install.php.

I triple checked my apache configuration to ensure there was nothing in it that would prevent access to this file. I can't find anything. I've installed Drupal on several different Debian machines in the past and never encountered this problem. In fact, previous installations were pretty much text book. I don't think I did anything differently this time. I checked the documentation to ensure I'd covered all of the bases and it appears I have. I can't think of anything else that would be causing this error.

Anyone have any ideas?

What did you have restricting

davidhernandez - November 26, 2009 - 02:05

What did you have restricting access to install.php? When you removed them did you restart apache?

 
 

Drupal is a registered trademark of Dries Buytaert.