Re: [SMARTY] Installationprob

From: Date: Mon, 23 Jun 2003 10:55:49 +0000
Subject: Re: [SMARTY] Installationprob
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9751@lists.php.net to get a copy of this message
On Mon, Jun 23, 2003 at 11:49:11AM +0200, Wilhelm Kutting wrote: > Hi > i put the smartyclass under /usr/local/lib/php/Smarty/ > made it 777 and gave the ownership to root/root don't make it world-writable! only templates_c and cache have to be writable by the webserver. i would suggest only putting the "libs"-directory of the smarty-distribution into /usr/local/lib/... and putting templates_c and cache somewhere near the web-application. multiple web-sites can use a single Smarty.class.php, but different template_c-directories then. > When i now call > require('/usr/local/lib/php/Smarty/Smarty.class.php'); > > i get the following error: > Warning: SAFE MODE Restriction in effect. The script whose uid is 640 is > not allowed to access /usr/local/lib/php/Smarty/Smarty.class.php owned > by uid 0 > if you have a directory, that should be accesible by different uids, even in safemode, you can put it in safe_mode_include_dir: see http://php.net/manual/en/features.safe-mode.php#ini.safe-mode-include-dir of course this only makes sense, if the directory in question is not world-writable. HTH messju > a possible answer could be to turn the safemode off but i think that > could cause security problems and hope there is another solution? > > Wilhelm > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#9751) next »