AW: Re: Error messages when caching

From: Date: Tue, 09 Oct 2001 20:21:44 +0000
Subject: AW: Re: Error messages when caching
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1656@lists.php.net to get a copy of this message
I yust tried Smarty 1.4.5. Now I'm getting the same problem in template_c as there is now a directory hierarchy also. So I would like an option to put in one single dir. This should be done for cache and template_c. -----Ursprungliche Nachricht----- Von: Hans-Peter Oeri [mailto:lists+smarty@oeri.ch] Gesendet: Dienstag, 9. Oktober 2001 21:00 An: smarty@lists.ispi.net Cc: smarty@lists.ispi.net Betreff: [smarty] Re: Error messages when caching 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 --- You are currently subscribed to smarty as: W.Schweizer@SwissOnline.ch To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

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