Smarty installed here :
/usr/lib/php/smarty
My ibay is called "name", and my smarty folder (cache, configs, templates, templates_c) is here :
/home/e-smith/ibays/name/html/smarty
I've modified the "httpd.conf" file like that :
# pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays
added this :
# Set the sandbox within which PHP is confined to play
my $basedir = $ibay->prop('PHPBaseDir')
|| ("/home/e-smith/files/ibays/" . $ibay->key . "/");
$OUT .= " php_admin_value open_basedir $basedir";
###############
# SMARTY for ibay "name" - Maelvon - 2007.01.28
#
if ($ibay->key eq 'name')
{
$OUT .= ":/usr/lib/php/smarty/";
}
$OUT .= "\n";
#
###############
Run the command expand-template :
# expand-template /etc/httpd/conf/httpd.conf
And restarted "httpd-e-smith" service :
# service httpd-e-smith restart
I don't know about the security of this code addition, but it works !
If you have any comments ?
And enjoy Smarty !
Maelvon