Re: access a file
| From: | Hannes Magnusson | Date: | Fri, 13 Aug 2004 10:48:55 +0000 |
| Subject: | Re: access a file | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193682@lists.php.net to get a copy of this message | ||
Web server user & group, not the file.
what user own the file "abc.pl" ? is it the same user as is running httpd ?
- Hannes
On Fri, 13 Aug 2004 16:14:55 +0600
curlybraces@dialogsl.net (Curlys) wrote:
> -rwxr-xr-x 1 root root 133 Aug 13 15:48 zeed.php
>
> group and owner like this ,
> how does it workable ....plz help
>
> thanx
> curlys
>
>
> ----- Original Message -----
> From: "John Holmes" <holmes072000@charter.net>
> To: "Curlys" <curlybraces@dialogsl.net>
> Cc: "PHP" <php-general@lists.php.net>
> Sent: Friday, August 13, 2004 7:13 PM
> Subject: Re: [PHP] access a file
>
>
> Curlys wrote:
>
> > when run this script from the command prompt, it is working.
> >
> > <?php
> >
> > shell_exec ('killall -HUP abc.pl');
> >
> > ?>
> > <html>
> > <body> Terminated the application ...........!!!! </body>
> > </html>
> >
> > but , when it is put this file in a apache web server run via web browser
> > ( accessing a URL with a Link ) it doesn't work . what should i have to do
> ?
>
> The PHP script runs as the Apache user, which is generally 'nobody', so
> it probably doesn't have permission to execute the requested command.
>
> --
>
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals ___ www.phparch.com