Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Internal Server Error with phpsuexec enabled

Discussion in 'General Discussion' started by rainbows, Jul 30, 2003.

  1. rainbows

    rainbows Member

    Joined:
    Dec 17, 2001
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    301
    My apache was compiled with phpsuexec enabled.

    Now, I have problem with my php script.
    I always got Internal server Error on php script.
    In error_log shows that

    [Wed Jul 30 22:51:58 2003] [error] (8)Exec format error: exec of /usr/local/apache/htdocs/t1.php failed
    [Wed Jul 30 22:51:58 2003] [error] [client 203.121.131.38] Premature end of script headers: /usr/local/apache/htdocs/t1.php

    in my t1.php looks like this:

    PHP:
    <?  phpinfo(); ?>
    but if I added !#/usr/bin/php on the top of file, It's work.
    Anyone has any idea?

    I do not have problem on any virtual host - (such as - /home/username/public_html/t1.php - it will run properly without any modification)

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  2. Radio_Head

    Radio_Head Well-Known Member

    Joined:
    Feb 15, 2002
    Messages:
    2,051
    Likes Received:
    1
    Trophy Points:
    343
    same problem here , any solution ?
     
  3. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Sachse, TX
    make sure that any .php file has

    chmod 644

    and is the proper

    owner : owner ..

    Brenden
     
  4. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    316
    What he said.
     
  5. Edi

    Edi Member

    Joined:
    Sep 21, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    151
    PHP suEXEC Support

    disable_functions = phpinfo ,system, include, chown, chmod, exec, passthru, mail, readfile , dir , read, readdir
     
  6. foxboy

    foxboy Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    156
    and then disable php :eek:
     
Loading...

Share This Page