Re: [SMARTY] safe mode
| From: | Zajsoft | Date: | Sun, 05 May 2002 20:29:39 +0000 |
| Subject: | Re: [SMARTY] safe mode | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4060@lists.php.net to get a copy of this message | ||
Hi,
you must set a rights of DocRoot to 2770.
example.
apache run as user "www-data" & group "www-data"
file owner of virtual host DocRoot is user "www-data" & group "zajsoft"
and rights of this directory is 2770 and all is OK.
Warning:
file owner of virtual host DocRoot is user "zajsoft" & group "www-data" is
not functional.
BTW: Please sorry for my english.
Zajsoft
> ----- Original Message -----
> From: "Bertrand DUNOGIER" <bdunogier@wanadoo.fr>
> To: "G" <gerard@interfold.com>
> Cc: <smarty-general@lists.php.net>
> Sent: Sunday, May 05, 2002 5:19 PM
> Subject: Re: [SMARTY] safe mode
>
>
> > G> Is there any way to work around safe mode restrictions on shared
> > G> servers where root access (and editing php.ini or http.conf) isn't
> > G> available? Smarty can create the directories in templates_c, but
> > G> not dirs/files in them. These dirs can't be chmod'd by the user
> > G> either since they're owned by the web server. Most shared servers
> > G> I've dealt with enable safe mode - does Smarty work at all in those
> > G> environments? Would php's open_basedir directive help in this
> > G> situation (which would still require getting root to edit php.ini)?
> >
> > I had the same problem a while ago, and someone sent me this class,
> > that makes smarty work without subdirectories. It was with a quite old
> > version of Smarty, so I am NOT SURE AT ALL that it still works with
> > the latest versions.
> >
> > Just include that file instead of Smarty.class.php, and instanciate
> > this class instead of Smarty. It worked on my host which is running on
> > safe mode.
> >
> > Hope it helps.
> >
> > Bertrand
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > Smarty General Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>