Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

I've stuck for a long time, please help!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
sunfish
Smarty n00b


Joined: 27 Jul 2004
Posts: 2

PostPosted: Tue Jul 27, 2004 9:43 pm    Post subject: I've stuck for a long time, please help! Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Jul 27, 2004 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sunfish
Smarty n00b


Joined: 27 Jul 2004
Posts: 2

PostPosted: Wed Jul 28, 2004 1:57 am    Post subject: my mistake... Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP