seeyes

Well-Known Member
Sep 12, 2003
50
0
156
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.
 

seeyes

Well-Known Member
Sep 12, 2003
50
0
156
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
 

macian

Member
Oct 17, 2002
12
0
151
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.
 

wobblyboy

Member
Sep 27, 2004
5
0
151
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.