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.

Info about suexec & phpsuexec

Discussion in 'General Discussion' started by seeyes, Oct 4, 2004.

  1. seeyes

    seeyes Well-Known Member

    Joined:
    Sep 12, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Hi boys,
    I have update apache build with "Update Apache"menu in WHM. I have checked "PHP suEXEC Support" and "suEXEC Module".

    Now apache and php work fine, but if I make a script like:
    PHP:
    <?php
    $output 
    shell_exec('whoami');
    echo 
    "User: <b><pre>$output</pre></b>";
    ?>
    I see user= nobody! with phpsuexec, I would not have to see the customer owner of the script?

    thank you.
     
  2. seeyes

    seeyes Well-Known Member

    Joined:
    Sep 12, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Hi boys,
    I try the previous script in some server, and I see alway user=nobody...
    It's normal?
    For example, if with php script I try to upload a file on a web space, the owner of uploaded file is nobody :(

    Thank you
     
  3. macian

    macian Member

    Joined:
    Oct 17, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    with "PHP suEXEC Support" and "suEXEC Module" installed i get an interal server error unless the file is owned by the correct user,
    also with the above script it shows the correct owner of said file and not nobody.
     
  4. wobblyboy

    wobblyboy Member

    Joined:
    Sep 27, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    To answer seeyes:

    I had to run /scripts/chownpublichtmls

    in order to get uploaded files (and the existing files) to have the correct owner/group permisions. Once I ran that script everything worked well and I got rid of the 500 error.
     
Loading...

Share This Page