Taigo,
Use the template I posted a few days ago. It works for me.
From terminal as root I did this (on one line):
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/94UserWebPhp
Then in the window I entered this:
{
use esmith::AccountsDB;
$OUT = "";
my $accounts = esmith::AccountsDB->open;
my @users = $accounts->users;
foreach my $user (@users)
{
$OUT .= "\n<Directory /home/e-smith/files/users/".$user->key."/$
$OUT .= " AddType application/x-httpd-php .php .php3 .phtml\$
$OUT .= " AddType application/x-httpd-php-source .phps\n";
# Set the sandbox within which PHP is confined to play
my $basedir = $user->prop('PHPBaseDir')
|| ("/home/e-smith/files/users/" . $user->key . "/");
$OUT .= " php_admin_value open_basedir $basedir\n";
$OUT .= "</Directory>\n";
}
}
Then I saved (control x)
Then I typed expand-template /etc/httpd/conf/httpd.conf
Then I typed service httpd-e-smith restart
This will put a couple of lines in your httpd.conf for each user. I hope it works for you also.