View Full Version : Always "500 server error" header?!
chrisvmarle
10-02-2002, 01:16 PM
Hi,
My server is running "Apache/1.3.26 (Win32) PHP/4.2.0" and it all seems to work fine, but if I request a PHP-file I always get a "500 Internal Server Error" header that looks like this:
HTTP/1.1 500 Internal Server Error
Date: Tue, 01 Oct 2002 12:02:57 GMT
Server: Apache/1.3.26 (Win32) PHP/4.2.0
X-Powered-By: PHP/4.1.1
Connection: close
Content-Type: text/html
Is there someone who can tell me how to get a normal header?
HTTP/1.1 200 OK
Date: Tue, 01 Oct 2002 12:13:25 GMT
Server: Apache/1.3.26 (Win32) PHP/4.2.0
Connection: close
Content-Type: text/html
Thanks in advance.
Mzzl, Chris
can ya tell us what;'s causing this err ?
I mean...what are you doing that's resulting in such a message ?
chrisvmarle
10-02-2002, 07:16 PM
Just retrieving the file with my browser. (Wich doesn't really display the 500)
arik00
10-03-2002, 05:15 AM
check your apache configuration, make sure that headers are sent before your content, or use output buffering... (if you are using any headers).
but i guess thats a problem in apache configuration, install phptriad:
http://sf.net/projects/phptriad
it's an automated install of apache+php+mysql.
Arik :)
chrisvmarle
10-03-2002, 06:08 AM
I don't want to use any premade pakage, because I use quiet a lot more programs on my server than PHP & MySQL. So I rather have an invalid header than havint to cut down 50%.
And I've checked the Apache Configuration over and over again, but it all seems OK to me :(
Mzzl, Chris
chrisvmarle
10-03-2002, 06:16 AM
I've been doing some more research and found out that on my WinXP computer, with the same httpd.conf file (at least considering PHP), I get a normal 200 header... :(
Anyone any ideas?
BTW. I think by this I can conclude it's not Apache's configuration
firepages
10-03-2002, 12:24 PM
when you say request a PHP file do you mean ANY file with the .php extension or just .php files that actually have php in them, i.e. if you had a file called test.php with only HTML in it does that still cause an error ?
if so its probably a script-alias issue (not that you need a script alias if PHP is running as a module)
else it might me a dodgy .htacess file knocking around with strange permissions ??
ok...lets see what php file you are trying to access on your localhost its contents I meant...also, why not paste the relavant portion of your apache config file ? sometimes very minor errs can be overlooked see....no harm in checking, what say ?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.