HTTP 500 Errors

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
jgmaddle
Forum Newbie
Posts: 4
Joined: Wed Dec 17, 2008 7:39 pm

HTTP 500 Errors

Post by jgmaddle »

I'm posting this question in this area because I think my problem is a configuration problem with either Apache or PHP. It I'm wrong I apologize.

So here is the problem.

I'm running Apache 2.2.11 on windows with PHP 5.2.8 using mod_php.

I'm writing a php script, and whenever there is an error in my code, instead of getting a php error in my browser window, I get an HTTP 500 error and the page won't display.
I can go to the Apache error log and see exactly what the problem is, but this is a hassle, and I would much rather just get the errors displayed in the browser. I checked php.ini and error reporting is turned on, so I assume the problem is with my apache configuration, but I wouldn't know where to begin checking on this. To be honest I don't even know that this is an issue that can be fixed. But I would greatly appreciate any ideas anyone has. Thanks

-Jason
jgmaddle
Forum Newbie
Posts: 4
Joined: Wed Dec 17, 2008 7:39 pm

Re: HTTP 500 Errors

Post by jgmaddle »

Okay, so with my first post on this forum I've proven that I'm an idiot. I looked into php.ini again and found that display_errors was in fact set to Off. :oops:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: HTTP 500 Errors

Post by John Cartwright »

Maybe you were checking the wrong php.ini. It is common to have several different php.ini on the filesystem. When you are changing configurations, it is always safe to check the value against phpinfo();

And no that does not make you an idiot. We have all made silly mistakes. 8)
okanlawon
Forum Newbie
Posts: 1
Joined: Thu Dec 25, 2008 2:21 pm

Re: HTTP 500 Errors

Post by okanlawon »

thanks for sharing your your solution with us. I ran into the same hitch but your post proved to be a quick ransom to me.

I agree with the earlier post to you that you were not stupid please. We all make mistakes and learn from them.

cheers
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

Re: HTTP 500 Errors

Post by Syntac »

Same thing happened to me once.
Post Reply