|
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 |
jelte Smarty n00b
Joined: 16 Sep 2011 Posts: 2
|
Posted: Fri Sep 16, 2011 11:08 pm Post subject: [Ubuntu 11.04] Settings up folder permissions for smarty |
|
|
Hello everybody,
today I started with Smarty at school on windows system and XAMPP. this all worked out of the box. But now I want to try it out at home, on my ubuntu 11.04 system, and here I have some trouble with settings the correct permissions.
Specs:
OS: ubuntu 11.04
Smarty 3.1.0.
Webserver: Apache/2.2.17
PHP 5.3.5.
The problem is that when I try to use a template. I get this error:
Code: |
Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file templates_c/wrt4e73d5cc8d52c' in /var/www/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/smarty/sysplugins/smarty_internal_template.php(199): Smarty_Internal_Write_File::writeFile('templates_c/d9e...', 'compileTemplateSource() #2 /var/www/smarty/sysplugins/smarty_internal_templatebase.php(345): Smarty_Internal_TemplateBase->fetch('pagetemplate.tp...', NULL, NULL, NULL, true) #3 /var/www/smartytest/index.php(13): Smarty_Internal_TemplateBase->display('pagetemplate.tp...') #4 {main} thrown in /var/www/smarty/sysplugins/smarty_internal_write_file.php on line 44
|
so, i found out that it probably must be a permission issue on the folders template_c and cache, but I don’t know which permissions (probably: read/write) to set for which group/users.
can somebody help me how to set the permission settings for the template_c and cache folder?
Thanks anyway,
Greetings
Jelte. |
|
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
|