|
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 |
Kaastosti Smarty n00b
Joined: 04 Jul 2003 Posts: 1
|
Posted: Fri Jul 04, 2003 8:19 am Post subject: The chown/chmod thingy in templates_c again |
|
|
I've been building a site with smarty and tried to upload it to the server. That went just fine, until I actually ran one of the files. I've created a templates_c dir, with chmod777 rights.
Smarty does create directories like %%115 and %%207, but after that refuses to create any files in there. That's probably because the rights aren't set correctly on those dirs.
Where is the Smarty config in which the directory creation process takes place. I'm pretty sure I must be able to create directories with something like chmod777 from default.
I already contacted the provider, who told me that there's no other way than to re-config Smarty. Well... I could ask him to chmod each and every file Smarty creates in there, but I doubt that would be an elegant solution for this.
I'm pretty sure I'm not the first person who ran into this problem, although I couldn't find a satisfying answer anywhere.
Thx in advance! |
|
Back to top |
|
BlueTrin Smarty Rookie
Joined: 05 Jul 2003 Posts: 9
|
Posted: Sat Jul 05, 2003 11:45 pm Post subject: |
|
|
Please use the search funtion, this question has been asked 10000 times:
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=191
You can set the variable $use_sub_dirs in Smarty.class.php to false so smarty won't use subdirs in template_c:
replace this:
var $use_sub_dirs = true;
with this:
var $use_sub_dirs = false;
KEYWORDS:
$use_sub_dirs use_sub_dirs subdirectory sub directory subdir dir templace_c chmod 777 provider default
install installation error problem troubleshooting |
|
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
|