Re: [SMARTY] SAFE MODE
| From: | M Mohr | Date: | Sun, 01 Dec 2002 17:09:23 +0000 |
| Subject: | Re: [SMARTY] SAFE MODE | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6607@lists.php.net to get a copy of this message | ||
On Sun, Dec 01, 2002 at 04:47:15PM -0000, Henry wrote:
> I'm installing Smarty-2.3.1 on a shared server and I get the following
> message when I run the index.php suggested under installation chapter 2
>
> I've chmod'd 777 Smarty-2.3.1 (where I've put smarty)
> And the template, template_c, cache, configs directories in guestbook are
> also 777
i should be enough to chmod templates_c and cache to 777.
> I get
>
>
> Warning: SAFE MODE Restriction in effect. The script whose uid is 794 is not
> allowed to access / owned by uid 0 in
> /home/webma6523/public_html/Smarty-2.3.1/Smarty.class.php on line 918
>
> Warning: Smarty error: problem creating directory "/%%117/%%1172603085" in
> /home/webma6523/public_html/Smarty-2.3.1/Smarty.class.php on line 589
you can set
$smarty->compile_dir = '/home/webma6523/public_html/Smarty-2.3.1/templates_c'
and
$smarty->use_sub_dirs = false;
before
$smarty->display('index.tpl');
have fun
messju
> Warning: Smarty error: problem writing '/%%117/%%1172603085/index.tpl.php.'
> in /home/webma6523/public_html/Smarty-2.3.1/Smarty.class.php on line 589
>
> Warning: SAFE MODE Restriction in effect. The script whose uid is 794 is not
> allowed to access / owned by uid 0 in
> /home/webma6523/public_html/Smarty-2.3.1/Smarty.class.php on line 968
>
> Warning: Unable to access /%%117/%%1172603085/index.tpl.php in
> /home/webma6523/public_html/Smarty-2.3.1/Smarty.class.php on line 686
>
> Warning: Failed opening '/%%117/%%1172603085/index.tpl.php' for inclusion
> (include_path='.:/usr/local/lib/php') in
> /home/webma6523/public_html/Smarty-2.3.1/Smarty.class.php on line 686
>
>
> Is all lost should I just give up, does it look like I wil be able to
> configure it?
>
> Help
>
> TIA
>
> Henry
> --
> .
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php