Re: [SMARTY] Re: compiled templates gets too much

From: Date: Wed, 26 Feb 2003 09:07:25 +0000
Subject: Re: [SMARTY] Re: compiled templates gets too much
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8210@lists.php.net to get a copy of this message
On Wed, Feb 26, 2003 at 07:54:36AM -0000, Jun wrote: > messju@lammfellpuschen.de (Messju Mohr) wrote in > news:20030225171200.GD22684@pharao.lammfellpuschen.de: > > > ^^^^ you need execute-permissions ("x") in a directory to create > > subdirectories in it. > > > > > > But those directories (like) > > > drwxr-x--x 4 nobody nobody 4096 Feb 25 09:36 %%-19 > > drwxr-x--x 3 nobody nobody 4096 Feb 25 09:36 %%197 > > drw-rw---- 2 nobody nobody 4096 Feb 25 09:38 %%-51 > > drwxr-x--x 3 nobody nobody 4096 Feb 25 09:36 %%688 > > Are all directories created by my scripts (thru Smarty). since this > directories are owned > by nobody:nobody which is apache, why does the permission is incomplete? maybe you modified $smarty->_file_perms or $smarty->_dir_perms before using $smarty. or you called umask() in your script with a wrong value. smarty does a mkdir($dirname, $this->_dir_perms) and mkdir() honors the umask set with umask(). > I can't modify it anymore because I have no access to ROOT account. you don't need to be root to do that, you just need to be nobody :) write a php-script that fixes your permissions and load the page from a browser. then it runs as nobody. if your provider allows do system('chmod -R ugo+rx [your templates_c]') if not, you have a bit more work with opendir(), readir() and chmod() have fun messju

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