This is the first time I have tried to set up Drupal. I'm using Linux, Apache2, MySQL, and PHP. This is the message I get when I try connecting to my site:

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403

I followed all the installation steps. I didn't touch httpd.conf or .htaccess. I just added an httpd.conf.local file with this in it:

DocumentRoot /srv/www/htdocs/drupal-4.6.5


Options None
AllowOverride All
Order deny,allow
Deny from all


DirectoryIndex index.php

Any idea what I did wrong?
Thanks!

Comments

styro’s picture

That looks like your first problem :)

--
Anton
New to Drupal? Please read this
Also: Forum posting tips

syslib’s picture

Ah yes, getting rid of "deny from all" fixed that problem. Now I'm getting this:

Warning: %v%v() [function.%v]: failed to open stream: No such file or directory in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 636

Warning: %v%v() [function.include]: Failed opening 'sites/default/settings.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 636

Warning: %v%v() [function.%v]: failed to open stream: No such file or directory in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 637

Warning: %v%v() [function.include]: Failed opening 'includes/database.inc' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 637

Warning: %v%v() [function.%v]: failed to open stream: No such file or directory in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 638

Warning: %v%v() [function.include]: Failed opening 'includes/session.inc' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 638

Warning: %v%v() [function.%v]: failed to open stream: No such file or directory in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 639

Warning: %v%v() [function.include]: Failed opening 'includes/module.inc' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 639

Fatal error: Call to undefined function db_fetch_object() in /srv/www/htdocs/drupal-4.6.5/includes/bootstrap.inc on line 199

styro’s picture

eg the includes directory and all the .inc files etc

Can the web server account read those files?

--
Anton
New to Drupal? Please read this
Also: Forum posting tips

syslib’s picture

All of the *.inc files are in the /srv/www/htdocs/drupal-4.6.5/includes directory and they all have read access for everyone.

The warning messages make me think it's looking for them in the /usr/share/php5 directory. Why is that?

syslib’s picture

Okay, I'm now at the point where the drupal home page is coming up. The icon is there, the user login box is there, but in the middle it says "Page not found".

Ideas?

styro’s picture

should also include the current directory.

--
Anton
New to Drupal? Please read this
Also: Forum posting tips

syslib’s picture

Anton,

Could you please elaborate? I tried putting all the files from
/srv/www/htdocs/drupal-4.6.5 into /usr/share/php5 but that didn't help.

Thanks,
R

styro’s picture

In your error messages it showed your include path as:
include_path='/usr/share/php5'
That path doesn't include the current directory ie '.'
Drupal looks for its include files relative to the Drupal index.php file.

You need to change it to something like:
include_path=".:/usr/share/php5"
(Note the '.:' added to the beginning of the string. The '.' means current directory and the ':' is the directory separator (on Unix).

You'll find this setting in your php.ini file (its exact location depends on your disto). Once you've edited it, restart your webserver and that should one more problem out of the way :)

Details here:
http://www.php.net/manual/en/ini.core.php

--
Anton
New to Drupal? Please read this
Also: Forum posting tips

syslib’s picture

I changed the entry in the php.ini file to
include_path = ".:/usr/share/php5" and restarted Apache and I'm still getting "Page not found".

Here's my site:
http://oslib.law.du.edu/

Thanks for any suggestions!

styro’s picture

That will tell you what your settings really are. It might be getting overridden somewhere.

Just put an info.php file on your site containing the following:

<?php print phpinfo(); ?>

Apart from that, I don't really know what could be wrong with your PHP setup. I can't see your site at the moment.

--
Anton
New to Drupal? Please read this
Also: Forum posting tips

syslib’s picture

The code above should read (forgot the code tag):

DocumentRoot /srv/www/htdocs/drupal-4.6.5
<Directory /srv/www/htdocs/drupal-4.6.5>
   Options None
   AllowOverride All
   Order deny,allow
</Directory>

<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>