RE : [SMARTY] Again : Smarty error: problem creating directory. did I found something ?
| From: | Christopher Rousseau | Date: | Thu, 08 Jan 2004 13:32:20 +0000 |
| Subject: | RE : [SMARTY] Again : Smarty error: problem creating directory. did I found something ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10784@lists.php.net to get a copy of this message | ||
It's not this problem:
I did try it during my looking for the problem and it did'nt resolve the
problem (php was able to create dir without problem by 'hand'). I did
look in the archive and try what was proprosed :)
My problem is that Smarty try to create the '/home' directory and that
is impossible at all.
-----Message d'origine-----
De : Alex [mailto:alex@pvl.at]
Envoyé : jeudi 8 janvier 2004 14:29
À : Christopher Rousseau
Cc : smarty-general@lists.php.net
Objet : Re: [SMARTY] Again : Smarty error: problem creating directory.
did I found something ?
There is a simple walkaround, create the cache and the templates_c
directories with a script and not by hand. This will make smarty the
owner of these dirs and solve your problems.
with best regards,
A. Kulikov
Christopher Rousseau wrote:
> I did use today a sharing hosting company to host a small web site.
>
> As usual I'm using smarty for it.
>
>
>
> I encounter the now well know "Smarty error: problem creating
directory
> '/home' in /home/seafarii1/Smarty-2.6.0/libs/Smarty.class.php"
>
> After some test and look on the previous mail in this liste I did try
> the $smarty->use_sub_dirs=false; option and it did work.
>
>
>
> But I was not happy, my site use cache with cache_id and I prefer to
use
> sub dir than put many files in the same directory
>
>
>
> I did look inside the "smarty_core_create_dir_structure" function and
> found a possible problem:
>
>
>
> On line 19 we found this line:
>
> $_open_basedir_ini = ini_get('open_basedir');
>
>
>
> It seams that the create_dir function remove all directory found in
> open_basedir before trying to create the new structure.
>
>
>
> On my hosting php server, this parameter is not set at all. So smarty
> try to create the full directory where my compile file are stored
>
> And failed creating the first one: "/home" because I have not the
right
> to write inside the root directory (even if this /home directory
already
> exist???).
>
>
>
> I have modified the smarty_core_create_dir_structure to force the
> $_open_basedir_ini variable to be my root directory (in my exemple :
> /home/seafarii1/) and it work now, but it's ugly :-).
>
>
>
> I don't know if somebody did work on it already and how to solve
> definitively this problem in the proper way.
>
> I'm at the disposition of Messju or anybody else who want to look upon
> it to provide more information if needed :-)
>
>
>
>
> Christopher Rousseau
>
>
>
>
>
>
>
>
>
>