Re: [SMARTY] Save Mode
| From: | Travis Low | Date: | Thu, 03 Apr 2003 20:00:27 +0000 |
| Subject: | Re: [SMARTY] Save Mode | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9061@lists.php.net to get a copy of this message | ||
I believe this is because PHP doesn't run as the virtual user, but rather, as the user and group of the NON-virtual web server.
In other words, the user and group of the virtual server is irrelevant to PHP. I think there's a PHP suexec module that allows PHP to run as the virtual user, but it's experimental.
cheers,
Travis
Hinrich Donner wrote:
Hi, I am a little bit confused. I've configured my Apache/Linux/PHP with save_mode=On. The Apache is running under uid:gid wwwrun:www and change on virtual servers to a-virtual-user:a-virtual-group. This is working fine. On Smarty engine I've disabled the cache. On compile time Smarty will create some directories in the Smarty::compile_dir and try to create some files in the sub directories. So far so nice, but it doesn't work: The directory is created with uid:gid wwwrun:www, but in the next step, the file is tried to be created with uid:gid a-virtual-user:a-virtual-group. So I've got an error, which is correct in save_mode. But why Smarty creates the directory as wwwrun and not as the given user? For now, the solution is to set Smarty::use_sub_dirs to false. Any hints?-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>