Код /etc/apache2/vhosts/user/site.ru
<VirtualHost 127.0.0.1:8080>
ServerName site.ru
AddDefaultCharset UTF-8
AssignUserID user user
DocumentRoot /var/www/user/data/www/site.ru
ServerAdmin adminSite.ru
ServerAlias www.site.ru
<FilesMatch "\.ph(p[3-5]?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f adminSite.ru"
php_admin_value upload_tmp_dir "/var/www/user/data/mod-tmp"
php_admin_value session.save_path "/var/www/user/data/mod-tmp"
php_admin_value open_basedir "/var/www/user/data:."
CustomLog /var/www/httpd-logs/site.ru.access.log combined
ErrorLog /var/www/httpd-logs/site.ru.error.log
</VirtualHost>
<Directory /var/www/site/data/www/site.ru>
php_admin_flag engine on
Options -ExecCGI
</Directory>