Premature end of script headers

2 posts / 0 new
Last post
#1 Sat, 08/07/2010 - 10:10
Jawshhboy

Premature end of script headers

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

Sat, 08/07/2010 - 22:28
andreychek

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

Topic locked