Forbidden, You don't have permission to access / on this server.

cjterrence - December 17, 2005 - 14:32

" Forbidden You don't have permission to access / on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request"
These words display in the web browser when I browses my website www.fpdblog.org
But I has done as the install.txt of drupal. Let's see what I has done.

1 I set up a web space in lunar whose url is http://www.lunarpages.com.
2 I downloaded the drupal's setup program "http://drupal.org/files/projects/drupal-4.7.0-beta2.tar.gz"
3 I extracted it and upload to my webspace. You can see the result in this page.
http://www.flickr.com/photos/53479095@N00/74414134/
4 I create a database of Mysql and a database user , grant the user has all privileges of the database.
I has done these thing by Cpanel. The database name is "blog", and display"fpdblog2_blog".The database user name is "terry",and display"fpdblog2_terry".
5 I also import the database.mysql to fpdblog2_blog with phpMyAdmin.
6 I edit the settings.php with below changes.
"$db_url = 'mysql://username:password@localhost/databasename';"
to "$db_url = 'mysql://fpdblog2_terry:cheng5@localhost/fpdblog2_blog';"

"$base_url = 'http://www.example.com';"
to "$base_url = 'http://www.fpdblog.org';"

Why the drupal still can't work?

Thanks!

htaccess

cjterrence - December 17, 2005 - 15:23

Now I think maybe the problem is htaccess.
Here is my htaccess's code .
How can I edit it?

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch "(\.(engine|inc|module|sh|sql|theme|tpl|xtmpl)|code-style\.pl|Entries.*|Repository|Root)$">
  Order deny,allow
  Deny from all
</FilesMatch>

# Set some options.
Options -Indexes
Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More exist in sites/default/settings.php, but
# the following cannot be changed at runtime. The first IfModule is
# for Apache 1.3, the second for Apache 2.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
  ExpiresByType text/html A1
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

  # Modify the RewriteBase if you are using Drupal in a subdirectory and
  # the rewrite rules are not working properly.
  #RewriteBase /drupal

  # Rewrite old-style URLs of the form 'node.php?id=x'.
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
  #RewriteRule node.php index.php?q=node/view/%1 [L]

  # Rewrite old-style URLs of the form 'module.php?mod=x'.
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
  #RewriteRule module.php index.php?q=%1 [L]

  # Rewrite current-style URLs of the form 'index.php?q=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

# $Id: .htaccess,v 1.68 2005-12-10 19:26:47 dries Exp $

Wrong directory :-)

robertDouglass - December 17, 2005 - 15:31

You're one level too high. You've got to put Drupal in the public_html (www) directory, or a subdirectory thereof.

- Robert Douglass

-----
My sites: HornRoller.com, RobsHouse.net

It is OK. Thanks!!!

cjterrence - December 18, 2005 - 03:48

It is OK. Thanks!!!

 
 

Drupal is a registered trademark of Dries Buytaert.