Error 500: Premature end of script headers
It was a file permission issue.
All files on my website were set to a permission level of '644.' Once I changed the permission level to 705 (chmod 705
) everything worked. Note that I changed it to 705, but 755 will also work. I also changed the folder it was in to 701 (to hide it, but still be executable by the server).
Aside: I still don't understand why my .PHP file worked on the other server when it was probably set to 644?? How could Apache execute the script without world permission?? Does Apache not need world permission?? Just a few questions I still have...
Premature end of script headers: php5 Symfony produces internal server error 500
Recently I encountered similar issue. Replacing file caching with APC solved my problems completely. I needed to replace sfFileCache for view_cache, i18n cache and routing.
If APC is not available on your server than you can easily use any other popular accelerator instead.
How to use APC with symfony: http://www.zalas.eu/symfony-meets-apc-alternative-php-cache
Related Topics
How to Iterate Through Dom Elements in PHP
"Web Interface" to PHPunit Tests
Next Business Day of Given Date in PHP
How to Send Email from Local Wamp Server Using PHP
How to Upload Multiple Image in Laravel
Work-Around for PHP5's Pdo Rowcount MySQL Issue
Error Checking for Pdo Prepared Statements
Check If MySQL Table Exists or Not
Checking If a String Contains an Integer
Fetching One Row Only with MySQLi
Line Break Not Working When Writing to Text File in PHP
Include: CSS with .PHP File Extension
Multidimensional Array PHP Implode
Return One Value from Database with MySQL PHP Pdo