Re: `ls -l /` does not reproduce same info than when executed in bash.
| From: | Hans Deragon | Date: | Thu, 10 Mar 2005 16:41:31 +0000 |
| Subject: | Re: `ls -l /` does not reproduce same info than when executed in bash. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210447@lists.php.net to get a copy of this message | ||
Jay Blanchard wrote:
[snip] I did "su - apache" to switch to the same user under which the Apache server is running and tried the "ls -ld /" under bash, and it worked fine. Thus the server's has all the permissions to read the root directory. Yet PHP does not seam to have these permissions. [/snip] Good work Sparky, you answered your own question. Who does PHP run as? Does it really run as Apache?Since PHP runs under Apache, I assume it runs under the apache user. But if I am wrong, please advise. For the other readers, sorry for submitting twice my email to the list. I had a problem with my mailer... Best regards. Hans Deragon -- Consultant en informatique/Software Consultant
Deragon Informatique inc. Open source: http://www.deragon.biz http://facil.qc.ca (Promotion du libre) mailto://hans@deragon.biz http://autopoweroff.deragon.biz (Logiciel)