Re: UID on APACHE ..
| From: | Mirco "MEEBEY" Bauer | Date: | Thu, 09 Jan 2003 23:21:23 +0000 |
| Subject: | Re: UID on APACHE .. | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12203@lists.php.net to get a copy of this message | ||
I am sorry to say that, but its not possible to change the UID with PHP as a module,
the suexec only applies to CGI scripts, if you install PHP as CGI it would work... as PHP module, no
way
On Thu, 09 Jan 2003 19:19:36 -0200
"Alexandre E. Knorst" <aeknorst@terra.com.br> wrote:
>
> Hi Peoples,
>
> I have a BIG problem,
>
> In my WebServer, running Apache and PHP as Module, I have many diferents
> VirtualHost.
> Each VirtualHost running under a diferent user with suexec.
>
> But, the users call fails when they try to use functions to manipulate
> files/directories,
> I think this is happening because the PHP are calling the function as the
> general Apache user, and not the VirtualHost user ..
>
> I really appreciate if you have any clue to avoid this behavior ...
>
> Thanks.
>
> - Alexandre
>
>
> ...
> Port 80
> User httpd
> Group www
> ...
>
> <VirtualHost *>
> User xyz
> Group sites
> ServerName www.xyz.com
> DocumentRoot /home/httpd/sites/xyz
> php_admin_flag safe_mode On
> php_admin_value doc_root "/home/httpd/sites/xyz"
> php_admin_value open_basedir "/home/httpd/sites/xyz:/tmp/"
> php_admin_value safe_mode_exec_dir "/home/httpd/sites/xyz/bin"
> CustomLog /home/httpd/logs/xyz/access_log common
> ScriptAlias /cgi-bin /home/httpd/sites/xyz/cgi-bin
> </VirtualHost>
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Mirco Bauer aka MEEBEY
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d s-: a--- C++ UL++>++++ P L++$>+++$ E W+++$ N o? K- w++>! O- M- V? PS
PE+ Y- PGP>++ t 5+ X++ R tv+ b+ DI? D+ G>++ e h! r>++ y?
------END GEEK CODE BLOCK------