Code:
fastcgi.conf
# ISPCP ω (OMEGA) - Virtual Hosting Control System | Omega Version
# Copyright (c) 2006-2007 by ispCP | http://isp-control.net
#
#
# License:
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GPL General Public License
# as published by the Free Software Foundation; either version 2.0
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GPL General Public License for more details.
#
# You may have received a copy of the GPL General Public License
# along with this program.
#
# An on-line copy of the GPL General Public License can be found
# http://www.fsf.org/licensing/licenses/gpl.txt
#
########################################################################
#
# @TODO :
# - Finish PHP5 Support
# - Finish config Fastcgi
<IfModule mod_fastcgi.c>
FastCgiWrapper On
FastCgiIpcDir /var/lib/apache2/fastcgi2
FastCgiConfig -minProcesses 1 -maxProcesses 10 -singleThreshold 100
#-killInterval 300 \
#-autoUpdate \
#-idle-timeout 240 \
#-pass-header HTTP_AUTHORIZATION
FastCgiServer /var/www/fcgi/master/php5-fcgi-starter -user vu2000 -group vu2000
#
# PHP4 SUPPORT
#
AddHandler php4-fastcgi .php4
<Location /php4/php4-fcgi-starter>
SetHandler fastcgi-script
Options +ExecCGI
</Location>
Action php-fastcgi /php4/php4-fcgi-starter
AddType application/x-httpd-php .php
#
# PHP5 SUPPORT
#
AddHandler php5-fastcgi .php
<Location /php5/php5-fcgi-starter>
SetHandler fastcgi-script
Options +ExecCGI
</Location>
Action php5-fastcgi /php5/php5-fcgi-starter
</IfModule>
Code:
00_master.conf
#
# Master Begin
#
<VirtualHost ip.addr:80>
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/ispcp/gui
ServerName domain.com
ErrorLog /var/log/apache2/users/domain.com-error.log
TransferLog /var/log/apache2/users/domain.com-access.log
CustomLog /var/log/apache2/domain.com-traf.log traff
CustomLog /var/log/apache2/domain.com-combined.log combined
Alias /errors /var/www/ispcp/gui/errordocs/
ErrorDocument 401 /errors/index.php
ErrorDocument 403 /errors/index.php
ErrorDocument 404 /errors/index.php
ErrorDocument 500 /errors/index.php
Alias /pma /var/www/ispcp/gui/tools/pma/
Alias /webmail /var/www/ispcp/gui/tools/webmail/
Alias /ftp /var/www/ispcp/gui/tools/filemanager/
<IfModule mod_fastcgi.c>
SuexecUserGroup vu2000 vu2000
</IfModule>
<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php4.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>
#
# Master End
#