Tuesday, April 6, 2010

Drupal CMS Internal Server Error 500

Drupal one of the best CMS ever. Thought of installing a new Drupal website this morning. I have worked with several other Drupal sites before and never had any other site in the past give such a weird error as the one shown below:

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

Please contact the server administrator, abc@abc.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

All I did was installed Drupal. Site was just fine. Enabled Clean Urls and went to the site's homepage, there comes the error. However I was able to access the site by directly typing the hardcoded url's, not the clean ones. So the site was up, it was not a Drupal installation issue. If it was not a Drupal issue, then the next bet would be the server configuration files. Druapl highly is dependent on the server configuration to work right. All that was required was to uncomment the following line from the .htaccess file that handles drupal re-directs.

RedirectBase /

That brought the drupal site up. Note that by uncommenting the above line, even the sub-sites installed as sub-directories (www.example.com/subdir) or subsites (www.subsite.example.com) will work.

0 comments:

Post a Comment