Re: [PHP] PHP-5.2.3 and Internal Server Error
On 7/18/07, Paul Scott [EMAIL PROTECTED] wrote: On Tue, 2007-07-17 at 18:06 -0500, Richard Lynch wrote: Run the same script with php CLI and see what it outputs. Goes through without a problem. Open the script in various editors to be sure there's no stray un-printable character in the source. Checked. This is from one of our releases, so it has been checked, but I have now re-checked and all seems OK. Set error_reporting to E_ALL. It always is on our test and development boxes. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php First of all, I'll apologize for my useless reply yesterday morning. I replied in haste (first thing in the morning) without really even reading your message, where you explicitly said that you had read the Apache logs. Dan Brown: 0, Mental Retardation: 1 Secondly, check to make sure the script is owned by a non-root user. While it should kick out a message saying that execution of the script is denied by server configuration, it may instead report a standard Perl-esque premature end of script headers. Third, check your php.ini file, since you said you just upgraded, to see what, if anything, is set in the `default_mimetype` flag. Also check your `output_buffering` and `auto_*_file` flags (where * = prepend/append). Hope that helps to at least narrow down some possibilities. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP-5.2.3 and Internal Server Error
On one of our test boxen, we recently upgraded to PHP-5.2.3 and all of a sudden started getting Internal Server Errors. The Apache log file tells me that there is a premature end of script error on index.php, which is simply an entry point script to an MVC framework. I have checked that there is no whitespace after the closing ? tag and all, and have removed almost everything that I can think of that may be causing something like this. It seems to choke on the call to ob_start()... Anyone have any ideas that may shed some light on this one? Appreciate any helpful tips. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP-5.2.3 and Internal Server Error
On 7/17/07, Paul Scott [EMAIL PROTECTED] wrote: On one of our test boxen, we recently upgraded to PHP-5.2.3 and all of a sudden started getting Internal Server Errors. The Apache log file tells me that there is a premature end of script error on index.php, which is simply an entry point script to an MVC framework. I have checked that there is no whitespace after the closing ? tag and all, and have removed almost everything that I can think of that may be causing something like this. It seems to choke on the call to ob_start()... Anyone have any ideas that may shed some light on this one? Appreciate any helpful tips. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Check your Apache error_log file. It will either be in the same directory as the index.php script or in the logs/ subdirectory of Apache's installation, by default. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP-5.2.3 and Internal Server Error
On Tue, July 17, 2007 7:20 am, Paul Scott wrote: On one of our test boxen, we recently upgraded to PHP-5.2.3 and all of a sudden started getting Internal Server Errors. The Apache log file tells me that there is a premature end of script error on index.php, which is simply an entry point script to an MVC framework. I have checked that there is no whitespace after the closing ? tag and all, and have removed almost everything that I can think of that may be causing something like this. It seems to choke on the call to ob_start()... Anyone have any ideas that may shed some light on this one? Appreciate any helpful tips. Run the same script with php CLI and see what it outputs. Open the script in various editors to be sure there's no stray un-printable character in the source. Set error_reporting to E_ALL. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP-5.2.3 and Internal Server Error
On Tue, 2007-07-17 at 18:06 -0500, Richard Lynch wrote: Run the same script with php CLI and see what it outputs. Goes through without a problem. Open the script in various editors to be sure there's no stray un-printable character in the source. Checked. This is from one of our releases, so it has been checked, but I have now re-checked and all seems OK. Set error_reporting to E_ALL. It always is on our test and development boxes. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php