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

problems with running

 
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
msgre
Smarty n00b


Joined: 20 May 2003
Posts: 2

PostPosted: Tue May 20, 2003 5:25 am    Post subject: problems with running Reply with quote

hi to everybody
i have problems with installing smarty on my web site.

i get this error message:
Warning: main(/home/www/freehosting/zlatesipy.cz/www/smarty_dir/smarty/Smarty.class.php) [function.main]: failed to create stream: Permission denied in /home/www/freehosting/zlatesipy.cz/www/index100.php on line 9

Fatal error: main() [function.main]: Failed opening required '/home/www/freehosting/zlatesipy.cz/www/smarty_dir/smarty/Smarty.class.php' (include_path='.:/usr/local/lib/php') in /home/www/freehosting/zlatesipy.cz/www/index100.php on line 9

could you somebody help me with this problem?
thank you very much
msgre

ps: i sucessfully install and run smarty on my my home computer (localhost), but after moving the file to server i get errors shown above.... i set directory smarty_dir, caches and templates_c to mode 770. If i set it to mode 775 or 777 there was more error messages from smarty, so i turn it back to 770....
pps: i try write
require "smarty_dir/smarty/Smarty.class.php";
or
require "/home/www/freehosting/zlatesipy.cz/www/smarty_dir/smarty/Smarty.class.php";
or
define("SMARTY_DIR", "/home/www/freehosting/zlatesipy.cz/www/smarty_dir/smarty/");
require(SMARTY_DIR."Smarty.class.php");
and every method fails....
Back to top
View user's profile Send private message
msgre
Smarty n00b


Joined: 20 May 2003
Posts: 2

PostPosted: Tue May 20, 2003 7:53 am    Post subject: solved! Reply with quote

i try to change directory permissions, and i found combination which is for my problem solution:

smarty_dir = 755
cache = 777
configs = 755
smarty = 755
templates = 755
templates_c = 777

in my php source code i used this variation for define location of smarty class:

define("SMARTY_DIR", "/home/www/freehosting/zlatesipy.cz/www/smarty_dir/smarty/");
require(SMARTY_DIR."Smarty.class.php");

bye Very Happy
Back to top
View user's profile Send private message
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