The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

all php not working giving Premature end of script headers:

Discussion in 'General Discussion' started by big, Sep 21, 2007.

  1. big

    big Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    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. big

    big Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    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. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Seems to be a new problem with the latest update. There are few clients on this forums who have the same problem.
     
  5. Abhay_21

    Abhay_21 Registered

    Joined:
    Sep 29, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page