Re: Path configuration woes
| From: | pete M | Date: | Mon, 16 Feb 2004 14:26:19 +0000 |
| Subject: | Re: Path configuration woes | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10957@lists.php.net to get a copy of this message | ||
Have you tried
chmod -R +777 templates_c
- I seem to remember having a recuss problem with the templates_c directory
Pete
Keith Greene wrote:
Greetings, I am having trouble configuring Smarty paths properly. I have set up 2 apache environment variables, SMARTY_LIB which points to the Smarty class files, outside of the webroot, and SMARTY_DIR which points to the templates, templates_c and cache directories, also outside the webroot. Smarty can see the directories fine, but it fails creating the compiled files/directories with: Warning: Smarty error: problem creating directory "/usr/local/apache/inc/smarty_dir/templates_c/%%-20/%%-2092110050" the directory "/usr/local/apache/inc/smarty_dir/templates_c/" exists, and is owned by user "www" and is CHMODed to 700 (I have also tried 777, this is not a shared server) Apache runs as user "www". No matter what I do, Smarty complains. Now for the kicker: I have a separate server that Smarty works fine on. The 2 servers are set up basically the same way, except that on the non-Smarty-working server, the webroot and templates folder are in CVS. I have been assured by our sysadmin that CVS is not causing permission problems, and I can create directories and files in the templates_c directory when I su to www. Also of interest is that other scripts can create files and folders whether in or out of CVS. Other observations: in the warning message, it would appear that Smarty is trying to create 2 sub directories, "%%-20" and "%%-2092110050". Looking at the relevant code in the class file, it appears that Smarty creates the directories recursively. Smarty doesn't complain about trying to create the "%%-20" directory, it only complains about "%%-20/%%-2092110050", though neither directory is actually created. Is this simply a problem with Smarty error reporting? Thanks for your time, Keith Greene