These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Premature end of script headers on the new forum.
Hi,
I used to run Centos on my server but yesterday I backed up my sites (wordpress) and databases, wiped out everything on the server and installed Debian (for simplicity). I re-installed virtualmin, reuploaded my wordpress sites and restored databases but apache has been giving me 500 error when I try to access my sites. I checked my error log and I see a bunch of "Premature end of script headers".
Is there a setting or something I need to change because I changed my OS? How do I fix this anyway?
Thanks, Josh
Howdy,
Changing your OS typically isn't a problem... you should be able to make the switch from CentOS to Debian.
Looking in the error logs is a good step, normally you'd see the error(s) in there. Just to verify, are you looking at the users error log... in $HOME/logs/error_log?
You may also want to take a peek at the suexec log, in /var/log/apache2/suexec.log.
Also, you may want to make sure you have all the PHP modules you require installed. Things like php5-mysql and php5-gd which WordPress may be using aren't necessarily installed by default.
-Eric