Re: [SMARTY-DEV] i think this is a bug.....
| From: | Monte Ohrt | Date: | Thu, 27 Feb 2003 18:06:12 +0000 |
| Subject: | Re: [SMARTY-DEV] i think this is a bug..... | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-858@lists.php.net to get a copy of this message | ||
On Thu, 2003-02-27 at 10:23, Jun wrote:
> Hi! My site (www.paulinos.com) is being hosted by Exa-Bytes network. I have
> a problem setting up my page.. which is now using Smarty template engine....
> I already asked the server administrator to change the ownernship of
> cache/ and templates_c/ folder to nobody.nobody (they use nobody.nobody
> instead of apache.apache). Now, my problem is.. some of the page is working
> ok.. but some are not! they keep issuing warnings... permission denied..
> etc..
>
> here are the directory permissions:
>
> bash-2.05$ ls -l
> total 24
> drwxr-xr-x 2 nobody nobody 4096 Feb 27 09:08 cache
> drwxr-xr-x 2 paulinos paulinos 4096 Feb 25 09:28 configs
> drwxr-xr-x 3 paulinos paulinos 4096 Feb 25 09:43 templates
> drwxr-xr-x 10 nobody nobody 4096 Feb 27 09:13 templates_c
> bash-2.05$ ls -l cache/
> bash-2.05$ ls -l templates_c/
> total 32
> drwxr-x--x 3 nobody nobody 4096 Feb 27 09:11 %%117
> drw-rw---- 2 nobody nobody 4096 Feb 27 09:12 %%-14
> drw-rw---- 2 nobody nobody 4096 Feb 27 09:13 %%144
How are these two directories being created with 660? they should be 755
like the rest of them....
Monte
> drwxr-x--x 3 nobody nobody 4096 Feb 27 09:12 %%188
> drwxr-x--x 4 nobody nobody 4096 Feb 27 09:11 %%-19
> drwxr-x--x 3 nobody nobody 4096 Feb 27 09:11 %%197
> drwxr-x--x 3 nobody nobody 4096 Feb 27 09:12 %%-51
> drwxr-x--x 3 nobody nobody 4096 Feb 27 09:11 %%688
>
>
> I know that there is something wrong with how %%-14 and %%144 was
> created.. but its smarty's job not mine. what is wrong with the script?
>
> here are the errors (HTTP):
> http://www.paulinos.com/news.php
>
> Warning: Smarty error: problem creating directory
> "/home/paulinos/public_html/smarty/templates_c//%%-14/%%-1447631424" in
> /home/paulinos/public_html/classes/smarty/Smarty.class.php on line 999
>
> Warning: Smarty error: problem writing
> '/home/paulinos/public_html/smarty/templates_c//%%-14/%%-1447631424/news.tpl
> .php.' in /home/paulinos/public_html/classes/smarty/Smarty.class.php on line
> 999
>
> Warning: touch() [function.touch]: Unable to create file
> /home/paulinos/public_html/smarty/templates_c//%%-14/%%-1447631424/news.tpl.
> php because Permission denied in
> /home/paulinos/public_html/classes/smarty/Smarty.class.php on line 1518
>
> Warning:
> _smarty_include(/home/paulinos/public_html/smarty/templates_c//%%-14/%%-1447
> 631424/news.tpl.php) [function.-smarty-include]: failed to create stream:
> Permission denied in
> /home/paulinos/public_html/classes/smarty/Smarty.class.php on line 1708
>
> Warning: _smarty_include() [function.-smarty-include]: Failed opening
> '/home/paulinos/public_html/smarty/templates_c//%%-14/%%-1447631424/news.tpl
> .php' for inclusion (include_path='') in
> /home/paulinos/public_html/classes/smarty/Smarty.class.php on line 1708
>
>
>
> JUN
--
Monte Ohrt <monte@ispi.net>