Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2006
    Location
    Melbourne, Australia
    Posts
    84
    cPanel/Enkompass Access Level

    Root Administrator

    Default Correct way to enable PHP SuExec

    Hi,
    I've been trying to enable PHP SuExec on a server, but I'm having a few problems. I compiled Apache and PHP via the 'Apache Update' option in WHM. All seems to be going well (Apache starts), but when I try to access a PHP file, I get an 'Internal Server Error' message. The error log states something like:
    Code:
    [Fri Oct 27 23:41:47 2006] [error] (8)Exec format error: exec of /usr/local/apache/htdocs/phpinfo.php failed
    [Fri Oct 27 23:41:47 2006] [error] [client 202.7.176.134] Premature end of script headers: /usr/local/apache/htdocs/phpinfo.php
    Since I have no experience with cPanel-based servers, I'm not sure what to do to fix this. Does anyone know?

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    what does this give you?

    service httpd configtest

  3. #3
    Member
    Join Date
    Oct 2006
    Location
    Melbourne, Australia
    Posts
    84
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Doesn't matter, I seem to have fixed it.
    I was running PHP as an Apache module for a while, but I wanted to try PHP SuExec again, so I ran /scripts/easyapache today. This time, it worked perfectly

    There's still one script (Cacti) that gives that error, though, but most hosted sites seem to be working fine

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 10-11-2008, 11:33 AM
  2. PDO+PDO_MYSQL on php5.2.1+php-suexec (php-cgi)?
    By PondRicefied in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-16-2007, 09:36 PM
  3. Replies: 33
    Last Post: 09-10-2006, 12:56 AM
  4. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 11:34 AM
  5. Enable or Disable PHP SUEXEC
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-13-2003, 05:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube