Re: chmod and ps ef |grep httpd
| From: | Richard Lynch | Date: | Sun, 02 Sep 2001 01:48:37 +0000 |
| Subject: | Re: chmod and ps ef |grep httpd | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65622@lists.php.net to get a copy of this message | ||
> i've been told that the files must be owned by the
Which files? For what?...
> same person that owns the httpd. using ps ef |grep
> httpd, it says "grep httpd USERNAME=
> ENV=/home/police/.bashrc HISTSIZE="
> my unix login is police. so, what does this mean as
> far as trying to get my chmod command to work?
Probably nothing at all. You need to look in httpd.conf to see what User is
set to. If you can't look in httpd.conf (at an ISP) <?php phpinfo();?> may
tell you.
If all else fails, you can *probably* do:
<?php exec("/usr/bin/whoami", $results, $errorcode);?>
echo implode("<BR>\n", $results);
if ($errorcode){
echo "OSError $errorcode. Usually path/permissions. man
errno.<BR>\nMaybe don't even have permission to exec whoami... :-(<BR>\n";
}
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm