Server Error

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Server Error

Postby Jaymie1989 » 20. February 2008 11:46

Hi,

I am running phpBB3 on apache and i installed a mod and then had this
Code: Select all
Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
02/20/08 10:46:04
Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5


How can I fix this?
Jaymie1989
 
Posts: 20
Joined: 08. December 2007 01:53

Postby Izzy » 20. February 2008 12:07

Because it is is a server error the place to start looking for clues is in the server's error log file:
.\xampp\apache\logs\error.log
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby robmayol » 27. February 2008 13:40

I got the same problem with an OSCommerce installation.

I watched the logs and realized the error came from these lines in my .htaccess files :

Code: Select all
<IfModule mod_setenvif.c>
  <IfDefine SSL>
    SetEnvIf User-Agent ".*MSIE.*" \
             nokeepalive ssl-unclean-shutdown \
             downgrade-1.0 force-response-1.0
  </IfDefine>
</IfModule>


Which seems to be something that's only useful for IE (I definitely hate that browser).

So if you delete these lines from the htaccess you no longer get the 500 error.

What's also interresting is that I didn't get that problem with MAMP (which is a XAMPP-like kit for Mac).

Any idea someone ?

Thanks
robmayol
 
Posts: 4
Joined: 27. February 2008 13:35

Postby Wiedmann » 27. February 2008 14:03

Any idea someone ?

Sure, look into the "error_log" why you have exactly an error 500.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby robmayol » 27. February 2008 14:11

Well it says "SetEnvIf not allowed here"

That's why I looked for that order in my htaccess and removed it.

What I don't get is why this order didn't seem to be forbidden with MAMP. I'm a very beginner with Apache, Shell and all that stuff but I imagine that there must be something to change in php.ini to allow it ?
robmayol
 
Posts: 4
Joined: 27. February 2008 13:35

Postby robmayol » 27. February 2008 14:49

OK.

Comparing MAMP's and XAMPP's httpd.conf files I found where the problem comes from.

MAMP (no problem with it) :
Code: Select all
AllowOverride All


XAMPP (the bad guy) :
Code: Select all
AllowOverride AuthConfig


So I changed XAMPP files to :
Code: Select all
AllowOverride AuthConfig All

and it solved the problem.

Now, is that a security problem ?
robmayol
 
Posts: 4
Joined: 27. February 2008 13:35

Postby Wiedmann » 27. February 2008 14:52

Well it says "SetEnvIf not allowed here"

The ".htaccess" file can be restricted by the "AllowOverride" directive in the file "httpd.conf".

So I changed XAMPP files to :
Code: Select all
AllowOverride AuthConfig All

If you have "All", it makes no sense to use "AuthConfig" too.

In your situation you can use:
Code: Select all
AllowOverride All

or
Code: Select all
AllowOverride AuthConfig FileInfo

--> http://httpd.apache.org/docs/2.2/mod/co ... owoverride
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby robmayol » 27. February 2008 14:58

Thank you :D
robmayol
 
Posts: 4
Joined: 27. February 2008 13:35


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 27 guests