Hi

I've uploaded the drupal files to http://mysite/drupal
I've edited the /sites/default/settings.php and set the $base_url variable to 'http://mysite/drupal'

and when opening this url I have this message

500 Internal server error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Comments

CoR-1’s picture

I got the same error when I uploaded it and hit index.php to install it. It turned out my hosting provider did not support mod_rewrite (used for clean urls), so I commented out the mod rewrite lines in the .htaccess and it worked.

Uwe Hermann’s picture

Some lines in .htaccess may cause such problems, if your server doesn't allow you to override all or some Apache settings via .htaccess files.
Try removing all/some of these lines from .htaccess:

#Options -Indexes
#Options +FollowSymLinks

# Customized error messages.
#ErrorDocument 404 /index.php

# Set the default handler.
#DirectoryIndex index.php

Probably also these:

# 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>

(I'm assuming you're using Drupal 4.6)

HTH, Uwe.
--
hermann-uwe.de | crazy-hacks.org | unmaintained-free-software.org

yawp’s picture

it's definitely the .htaccess file ...

thank you guys

Morwyn’s picture

Had the same probs here, thanks for your reply. Commenting out the

#Options -Indexes
#Options +FollowSymLinks
# Customized error messages.
#ErrorDocument 404 /index.php
# Set the default handler.
#DirectoryIndex index.php

was enough to solve the problem.

krichlin’s picture

I was also getting 500 Internal Server Errors. It always went back to a command in the .htaccess file that my host did not like. I had to comment out every single line of .htaccess to make drupal work. So I did it! Then I had to struggle with the usual mysql and settings.php issues, and then my installation started working.

My question is: Are there any ill effects or risks from commenting out the entire .htaccess file? Cause that's what I did.

My second question is: any thoughts as to why all the commands in .htaccess are being rejected by my host? Could this a directory permissions issue? What else could it be?

Thanks,

Ken

heine’s picture

If you comment out the entire .htacces file you may as well delete the entire file; there's no need for apache to read only comments...

I don't think clean urls will work very well on your site without .htaccess.

As to why your host rejects htaccess: contact your host & ask! Perhaps they are willing to grant you use of all directives in htaccess.

--
Tips for posting to the forums

krichlin’s picture

Thanks, hopefully I didn't get rid of any really critical stuff. I'll ask my host why I can't do any of that stuff.

- Ken