Re: Error messages when caching

From: Date: Tue, 09 Oct 2001 18:59:38 +0000
Subject: Re: Error messages when caching
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1654@lists.php.net to get a copy of this message
Hi! On Tue, 9 Oct 2001, Werner Schweizer wrote: > Warning: SAFE MODE Restriction in effect. > The script whose uid is 1526 is not allowed to access > ./cache/b3dde52363a5673de5377ca86fffbfeb/c4 owned by uid 30 > in Smarty.class.php on line 1056 I didn't yet see an answer (as it cannot be to disable safe mode): The problem is, that in safe mode the owner of the script must match the owner of affected files/directories. Actually, I don't know safe mode too well, but I see a principal problem there: The files created by the script get the uid of the httpd process and therefore cannot be accessed later-on... How does PHP handle this? The same goes then for directories: the get the wrong owner and are no longer accessible... For "real" virtualhosts, this is not a problem, as the uid of the httpd process may be changed. Did it work with older versions of smarty? I don't think so... If there actually IS a problem with directory creation in safe mode (the disallowed mkdir mentioned before seems to be really rare), we probably should include a subclass in the distribution, that overrides the mkdir behaviour and stuffs everything in one dir?! Don't conform! IkKampfCaspar75

« previous php.smarty.general (#1654) next »