Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    big
    big is offline
    Member
    Join Date
    Aug 2001
    Location
    Earth
    Posts
    232

    Default all php not working giving Premature end of script headers:

    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

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by big View Post
    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

  3. #3
    big
    big is offline
    Member
    Join Date
    Aug 2001
    Location
    Earth
    Posts
    232

    Default

    Quote Originally Posted by mtindor View Post
    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

  4. #4
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Seems to be a new problem with the latest update. There are few clients on this forums who have the same problem.

  5. #5
    Registered User
    Join Date
    Sep 2005
    Posts
    4

    Red face

    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.

Similar Threads & Tags
Similar threads

  1. Premature end of script headers: index.php (error 500)
    By hm2k in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-26-2009, 04:29 PM
  2. Premature end of script headers
    By camposomar in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-02-2009, 04:37 PM
  3. Premature end of script headers
    By Menta2K in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-20-2009, 04:58 AM
  4. how to debug PHP script with "Premature end of script headers"
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-19-2007, 08:57 AM
  5. cgi not working Premature end of script headers
    By NoAgendas in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 10-14-2006, 09:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube