Re: [SMARTY] Using Smarty On Ensim Virtual Hosted Sites
| From: | Nimrod A. Abing | Date: | Mon, 17 Mar 2003 06:44:50 +0000 |
| Subject: | Re: [SMARTY] Using Smarty On Ensim Virtual Hosted Sites | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8684@lists.php.net to get a copy of this message | ||
Katana <katana@katana-inc.com> wrote:
> JWH> Is safe_mode enabled? IIRC, Smarty won't run with safe_mode enabled.
> It would but with use_sub_dirs set to false
Yes, it does work now thanks! But I had to chown the templates_c (and
cache) directory to the _owner_of_the_script_ *not* the webserver user.
For those still wanting to use_sub_dirs, the following should also work
(requires super-user):
1. Edit /etc/httpd/conf/httpd.conf and add
'php_admin_flag safe_mode_gid on' after the line that says
'php_admin_flag safe_mode on'
2. Restart the webserver.
3. create the directories for smarty templates, cache, config, and
templates_c.
4. chown <script_owner>:<script_owner_group> templates_c cache
5. chmod 2777 templates_c cache
Note that the php_admin_flag safe_mode_gid will affect *all* the virtual
hosted sites on the ensim server. This might not be a Good Thing but it
will allow the other virtual hosted sites to use Smarty :).
Best regards.
--
_nimrod_a_abing_
PGP Public Key here:
http://www.redberger.com/~abing/abing_at_redberger_dot_com.asc
Key expires at Thu Nov 6 11:01:34 2003 PHT