|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tobias_l Smarty Rookie
Joined: 11 Aug 2004 Posts: 24
|
Posted: Wed Aug 11, 2004 10:14 am Post subject: Problem mit Dateirechten |
|
|
Ich bin den Anweisung der Basis-Installationsanleitung gefolgt und habe wie gefordert die Dateirechte für die Ordner 'templates_c' und 'cache' auf 770 gesetzt (mit dem FTP-Programm FlashFXP).
Anschließend führe ich die Datei 'smarty.php' zum Test der Installation aus:
=========== smarty.php ==============
require('bin/includes/template_dir/tpl_setup.php');
$smarty = new Smarty_Storefront;
$smarty->assign('name','Tobias');
$smarty->display('default.tpl');
=================================
Hinweis: In 'tpl_setup.php' erweitere in die Basis-Installation um die Klasse 'Smarty_Storefront', um die Pfade zu den Template-Ordner zu setzen.
Bei Ausführung von 'smarty.php' erscheint nun folgende Fehlermeldung:
"Fatal error: Smarty error: unable to write to $compile_dir '/www/bin/includes/template_dir/templates_c'. Be sure $compile_dir is writable by the web server user. in /www/bin/includes/modules/tpl_engine/libs/Smarty.class.php on line 1083"
Der Fehler gibt an, dass die Schreibrechte nicht ausreichend sind, obwohl ich zuvor chmod auf die entsprechenden Ordner angewendet hatte.
Kann mir jemand helfen?
Danke im vorraus! |
|
Back to top |
|
kills Smarty Elite
Joined: 28 May 2004 Posts: 493
|
Posted: Wed Aug 11, 2004 12:25 pm Post subject: Re: Problem mit Dateirechten |
|
|
tobias_l wrote: | Ich bin den Anweisung der Basis-Installationsanleitung gefolgt und habe wie gefordert die Dateirechte für die Ordner 'templates_c' und 'cache' auf 770 gesetzt (mit dem FTP-Programm FlashFXP).
Anschließend führe ich die Datei 'smarty.php' zum Test der Installation aus:
=========== smarty.php ==============
require('bin/includes/template_dir/tpl_setup.php');
$smarty = new Smarty_Storefront;
$smarty->assign('name','Tobias');
$smarty->display('default.tpl');
=================================
Hinweis: In 'tpl_setup.php' erweitere in die Basis-Installation um die Klasse 'Smarty_Storefront', um die Pfade zu den Template-Ordner zu setzen.
Bei Ausführung von 'smarty.php' erscheint nun folgende Fehlermeldung:
"Fatal error: Smarty error: unable to write to $compile_dir '/www/bin/includes/template_dir/templates_c'. Be sure $compile_dir is writable by the web server user. in /www/bin/includes/modules/tpl_engine/libs/Smarty.class.php on line 1083"
Der Fehler gibt an, dass die Schreibrechte nicht ausreichend sind, obwohl ich zuvor chmod auf die entsprechenden Ordner angewendet hatte.
Kann mir jemand helfen?
Danke im vorraus! |
entweder mit chown den Webserver als besitzer des ordners angeben oder notfalls mit den rechten 777 probieren. |
|
Back to top |
|
tobias_l Smarty Rookie
Joined: 11 Aug 2004 Posts: 24
|
Posted: Wed Aug 11, 2004 3:58 pm Post subject: |
|
|
Ich habs nun mit 777 und auch mit 7777 probiert und bekomme denselben Fehler:
"Fatal error: Smarty error: unable to write to $compile_dir '/www/bin/includes/template_dir/templates_c'. Be sure $compile_dir is writable by the web server user. in /www/bin/includes/modules/tpl_engine/libs/Smarty.class.php on line 1083" |
|
Back to top |
|
tobias_l Smarty Rookie
Joined: 11 Aug 2004 Posts: 24
|
Posted: Wed Aug 11, 2004 4:03 pm Post subject: |
|
|
tobias_l wrote: | Ich habs nun mit 777 und auch mit 7777 probiert und bekomme denselben Fehler:
"Fatal error: Smarty error: unable to write to $compile_dir '/www/bin/includes/template_dir/templates_c'. Be sure $compile_dir is writable by the web server user. in /www/bin/includes/modules/tpl_engine/libs/Smarty.class.php on line 1083" |
hat jetzt doch mit 777 geklappt! allerdings bin ich damit noch nicht 100% zufrieden, da ja nun auch public an die ordner kommen könnte |
|
Back to top |
|
forged Smarty n00b
Joined: 11 Aug 2004 Posts: 1
|
Posted: Wed Aug 11, 2004 9:48 pm Post subject: Ich auch |
|
|
Hallo.
Ich habe auch das gleiche Problem. Ich habe nun den chown auf 777 gesetzt.
Ich bin ehrlich gesagt auch nicht so recht zufrieden mit der Einstellung 777.
Aber mit einer.htaccess Datei im Ordner kann man da wieder alles glatt machen.
Gruß
Alex
P.S.
Ach ja, die Version ist die neuste stable Version/release. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|