RE: [PHP] `ls -l /` does not reproduce same info than when executed in bash.

From: Date: Thu, 10 Mar 2005 15:42:22 +0000
Subject: RE: [PHP] `ls -l /` does not reproduce same info than when executed in bash.
Groups: php.general 
Request: Send a blank email to php-general+get-210443@lists.php.net to get a copy of this message
[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?

« previous php.general (#210443) next »