|
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 |
sunfish Smarty n00b
Joined: 27 Jul 2004 Posts: 2
|
Posted: Tue Jul 27, 2004 9:43 pm Post subject: I've stuck for a long time, please help! |
|
|
I installed smarty as follow:
/usr/local/lib/php/Smarty/Smarty.class.php
/usr/local/lib/php/Smarty/Smarty_Compiler.class.php
/usr/local/lib/php/Smarty/Config_File.class.php
/usr/local/lib/php/Smarty/debug.tpl
/usr/local/lib/php/Smarty/core/*.php
/usr/local/lib/php/Smarty/plugins/*.php
/var/www/smarty/app/templates/
/var/www/smarty/app/templates_c/
/var/www/smarty/app/configs/
/var/www/smarty/app/cache/
/var/www/html/app/index.php
I have already set both the permission of templates_c and templates to be 770
Also, for the httpd.conf, I set
user nobody
group nobody
(i'm using red hat 9.0 and smarty 2.6.3)
unfortunately, I always got these warning:
Warning: stat failed for /var/www/smarty/gradeSource/templates//index.tpl (errno=13 - Permission denied) in /usr/local/lib/php/Smarty/Smarty.class.php on line 1632
Warning: Smarty error: unable to read resource: "index.tpl" in /usr/local/lib/php/Smarty/Smarty.class.php on line 1083
Your help would save me a lot of time
Alan :) |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Jul 27, 2004 9:53 pm Post subject: |
|
|
It looks like your template directory is in:
/var/www/smarty/app/templates/
and you are trying to load a template located in:
/var/www/smarty/gradeSource/templates//index.tpl
hth |
|
Back to top |
|
sunfish Smarty n00b
Joined: 27 Jul 2004 Posts: 2
|
Posted: Wed Jul 28, 2004 1:57 am Post subject: my mistake... |
|
|
thanks mohrt,
Sorry, for the confusion..
actually, i used "gradeSource" instead of app.
I mean the same thing, app=gradeSource, pls think app as gradeSource
any idea? |
|
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
|