all php not working giving Premature end of script headers:

big

Well-Known Member
Aug 12, 2001
224
0
316
Earth
for some reason all my php sites running at the server are giving
Premature end of script headers:

what might be causing this? although phpinfo() is working just fine

and normal echo "example"; tags are also working but not the one that needs mysql etc.. such as vbulletin
 

mtindor

Well-Known Member
Sep 14, 2004
1,363
65
178
inside a catfish
cPanel Access Level
Root Administrator
for some reason all my php sites running at the server are giving
Premature end of script headers:

what might be causing this? although phpinfo() is working just fine

and normal echo "example"; tags are also working but not the one that needs mysql etc.. such as vbulletin
Did this happen after a Cpanel update? Did you just get a new website and you are trying to install Vbulletin on it and it's not working? Some more history is important. Are you an admin (with WHM access) or are you a reseller / end user who just happen to be coming to Cpanel forums thinking it's a cpanel problem?

If your server is running phpsuexec, check /usr/local/apache/logs/suexec.log and see what it says when you call one of those scripts. Also check /usr/local/apache/log/error.log . Also check error.log or error_log in the web directory where your php is running. All of those should give you some clue what is going on.

Do your PHP pages end in .php ? .php3 ? .phtml ? or something else?

If your server is running phpsuexec, make sure that your php files are not chmod'd 755 or they will not work. They should be chmod'd 644. Make sure your directories are chmod'd 755 or more restrictive - no directories or files chmod'd 777.

Mike
 

big

Well-Known Member
Aug 12, 2001
224
0
316
Earth
Did this happen after a Cpanel update? Did you just get a new website and you are trying to install Vbulletin on it and it's not working? Some more history is important. Are you an admin (with WHM access) or are you a reseller / end user who just happen to be coming to Cpanel forums thinking it's a cpanel problem?

If your server is running phpsuexec, check /usr/local/apache/logs/suexec.log and see what it says when you call one of those scripts. Also check /usr/local/apache/log/error.log . Also check error.log or error_log in the web directory where your php is running. All of those should give you some clue what is going on.

Do your PHP pages end in .php ? .php3 ? .phtml ? or something else?

If your server is running phpsuexec, make sure that your php files are not chmod'd 755 or they will not work. They should be chmod'd 644. Make sure your directories are chmod'd 755 or more restrictive - no directories or files chmod'd 777.

Mike
not new websites all php websites just doesnt work

i'm the box owner and it happened just by itself for every .php page and i've recompiled apache several times and didnt work too

error_log shows nothing except premature end of script header

pages are .php

permissions are correct no 666 or 777 files or folders
 

Abhay_21

Registered
Sep 29, 2005
4
0
151
Did you checked the apache conf file make sure php5 or php4 modules were uncommented in the configuration file. If they are commented uncomment those lines and restart apache.