|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
PHP with Apache and MySQL on Windows S2003
Hey,
I ordered a dedicated server this week and am trying to set up a wesbite on it, but am having problems configuring php properly. I have followed all instructions on php.net, read the FAQ and asked for help, but no luck so far. I have included the following arguments in my httpd.conf Quote:
plus of course Quote:
Well that works fine so far, when there is pure HTML in the php file as you can see here: 72.37.247.226/ But as soon as there actually is some PHP going on I get an HTTP Error 500 as you can see here: 72.37.247.226/hlstats/hlstats.php I have no idea why it is doing that, perhaps it is a permission problem? But that shouldn't happen on apache as far as I know. I ran php.exe in "-i" mode and could not spot any errors, except they hide them in the mass of text and i didnt see them there should everything be ok. Would be very kind of you to help Thanks Phosphor |
|
#2
|
||||
|
||||
|
Is there a chance that you are using PHP5.2.4
There is a bug in that version that will cause a HTTP 500 page due to a fatal parse or runtime error when output buffering is on. If you are using php5.2.4, either turn off output buffering in php.ini to work around the bug or upgrade to php5.2.5. |
|
#3
|
|||
|
|||
|
I installed 5.2.5 Actually, still tried turning outout buffering off, didn't change anything.
Thanks for the quick reply! |
|
#4
|
||||
|
||||
|
Check the web server log for errors to find out more information about what the server is detecting.
|
|
#5
|
|||
|
|||
|
Awesome, thanks.
Turns out there was an error in this file, and display_errors was set to off, resulting in a 500 HTTP error. With error reporting on I now see the error, meaning it is a script problem, not installation. Thank you so much, for your fast support and pointing me in the right direction. Phosphorblind PS: Yeah, I m retarded |
|
#6
|
||||
|
||||
|
Yeah. PHP in their somewhat questionable wisdom decided to output a confusing HTTP 500, cannot display this page... instead of a just leaving a blank page when nothing is output by php when there is a fatal parse or runtime error with display_errors off.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP with Apache and MySQL on Windows S2003 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|