safe mode
| From: | G | Date: | Thu, 02 May 2002 18:49:10 +0000 |
| Subject: | safe mode | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4000@lists.php.net to get a copy of this message | ||
Is there any way to work around safe mode restrictions on shared servers
where root access (and editing php.ini or http.conf) isn't available? Smarty
can create the directories in templates_c, but not dirs/files in them. These
dirs can't be chmod'd by the user either since they're owned by the web
server. Most shared servers I've dealt with enable safe mode - does Smarty
work at all in those environments? Would php's open_basedir directive help
in this situation (which would still require getting root to edit php.ini)?
Gerard
> Warning: SAFE MODE Restriction in effect. The script whose uid is 544 is
> not allowed to access ../smarty/templates_c/195/1955420526 owned by uid
> 48 in /home/virtual/site42/fst/var/www/html/smarty/Smarty.class.php on
> line 1366
>
> Warning: Smarty error: problem creating directory "../
> smarty/templates_c//195/1955420526"
> in /home/virtual/site42/fst/var/www/html/smarty/Smarty.class.php on line
> 470
>
> Warning: Smarty error: problem writing '../
> smarty/templates_c//195/1955420526/0.php.'
> in /home/virtual/site42/fst/var/www/html/smarty/Smarty.class.php on line
> 470
>
> Warning: Unable to access ../smarty/templates_c//195/1955420526/0.php
> in /home/virtual/site42/fst/var/www/html/smarty/Smarty.class.php on line
> 569
>
> Warning: Failed opening '../smarty/templates_c//195/1955420526/0.php'
> for inclusion (include_path='.:/php/includes:/usr/share/php')
> in /home/virtual/site42/fst/var/www/html/smarty/Smarty.class.php on line
> 569