I am running Drupal on XAMPP which is running on my mac.

Pre-installation I was getting 500 Server Error's on every page I loaded within the Drupal folder. I removed the .htaccess file which comes in the main folder and this cleaned up the 500 Server Errors.

However I am now having problems with clean URL's. The XAMPP server comes with mod_rewrite enabled which leads me to think that the problem is with the .htaccess file.

I have changed it to

#
# Apache/PHP/Drupal settings:
#

ErrorDocument 404 /index.php

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

  # If your site can be accessed both with and without the prefix www.
  # you can use one of the following settings to force user to use only one option:
  #
  # If you want the site to be accessed WITH the www. only, adapt and uncomment the following:
  # RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
  # RewriteRule .* http://www.example.com/ [L,R=301]
  #
  # If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:
  # RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
  # RewriteRule .* http://example.com/ [L,R=301]


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

As shown in this thread http://drupal.org/node/79235

This doesn't cause a server error but I am unable to use Clean URL's. Is there anything which is in the original .htaccess but not in this one which would cause clean URL's to not function correctly?

Comments

mrbert’s picture

http://drupal.org/node/43545

Corporate Intranet | Voacanga Africana | http://www.voacanga-africana.com.gh/sheabutter/">Bulk Shea Butter

fronbow’s picture

From what I've just read, xampp's mod_rewrite might be broken on macs.

Have a go using MAMP ( http://www.macupdate.com/info.php/id/16197 ) and let us know what happens. (It should be better as it's written for macs)

HTH

rggoode’s picture

I'm trying to install Drupal on a Macintosh desktop in order to test it out and become familiar with it.

However, when I try to load Drupal I'm getting a 500 error massage that reads:

"Internal Server Error

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

Please contact the server administrator, you@example.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."

I am using XAMPP on a Mac running OS X 10.5.6, and have been trying to install Drupal 6.11 to try it out. I've copied the default.settings.php and renamed it settings.php and set it's permissions to 666 as instructed. I've also set the permissions on the enclosing DEFAULT folder to 666.

I've been using the same XAMPP setup for local development of some Wordpress sites successfully, so my Localhost setup is functioning properly (for Wordpress, anyway). I've been looking all over the web for answers, but haven't found anything that clearly addresses this issue. However, I have found a number of people who are having identical problems.

I also tried installing MAMP to see if that would help, but I get the same error message.

Based on a suggestion I found at http://drupal.org/node/164268 I've renamed the .htaccess file to ~.htaccess and that allows me to get into Drupal, but I'm not sure how advisable that is. Before I go any further, I'd like to see if I can get the installation to work with a functioning .htaccess file. Any instructions on how and where to edit this file appropriately (I'm not particularly savvy on the intricacies of writing to .htaccess, so a newbie explanation would be helpful).

Roger Goode | Artist/Designer | Hillsborough, NH

michaelbstringer’s picture

Wow. That took a while! While trying to pull down our site to my localhost environment, I went around and around until I finally pulled up firebug with the page showing the

"connection to the server was reset while the page was loading"

and, low and behold, there was all that gobbledygook that you see when caching is enabled.

So, I went to the live site, disabled caching THEN backed up the DB, downloaded, and voila - problem solved!

That took WAY too long to figure out. Oh well...