Нужно сделать 3 вирт. хоста для апача и сделать 3х пользователей чтобы они могли изменять каждый свой сайт.
Я поставил apache2.4+ apache2-suexec-custom + прикрутил пхп чтобы через скрипт запускался cgi
Вот конфиги
Код: Выделить всё
<VirtualHost suite1.ru:80>
AddHandler application/x-httpd-php5 php
ScriptAlias /local-bin /home/user1/cgi-bin
Action application/x-httpd-php5 /local-bin/php.fcgi
Options +ExecCGI
#SuexecUserGroup user1 user1
<Directory /home/user1/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory /home/user1/www/>
Options Indexes FollowSymLinks
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
#allow from all
Require all granted
</Directory>
ServerAdmin webmaster@localhost
DocumentRoot /home/user1/www/test/htdocs
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Код: Выделить всё
suexec docroot disabled in /etc/apache2/suexec/www-data
Код: Выделить всё
#!/bin/sh
export PHP_FCGI_CHILDREN=4
export PHP_FCGI_MAX_REQUESTS=200
export PHPRC="/home/user1/www/test/conf/php.ini"
exec /usr/bin/php53/php-cgi