/etc/apache2/sites-available/BLABLA.vhost:
Code:
<Directory /var/www/BLABLA>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/BLABLA/web
ServerName BLABLA
ServerAdmin webmaster@BLABLA
ErrorLog /var/log/ispconfig/httpd/BLABLA/error.log
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html
<Directory /var/www/BLABLA/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client2/web2/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# cgi enabled
<Directory /var/www/clients/client2/web2/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client2/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# suexec enabled
SuexecUserGroup web2 client2
# php as fast-cgi enabled
<Directory /var/www/BLABLA/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
/var/www/php-fcgi-scripts/web2/.php-fcgi-starter
Code:
#!/bin/sh
PHPRC="/etc/php5/cgi/"
export PHPRC
PHP_DOCUMENT_ROOT="/var/www/clients/client2/web2"
export PHP_DOCUMENT_ROOT
# The variable PHP_FCGI_CHILDREN is onyl useful for lighty or nginx as apache
# mod_fcgi will control the number of childs themself and never use the additional processes.
# PHP_FCGI_CHILDREN=8
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
-d open_basedir=/var/www/BLABLA/:/var/www/clients/client2/web2/ \
-d upload_tmp_dir=/var/www/clients/client2/web2/tmp \
-d session.save_path=/var/www/clients/client2/web2/tmp \
-d memory_limit="64M" \
-d IPCCommTimeout=60 \
$1
(the green parts are manually changed by me)
Code:
server:/var/www/clients/client2/web2/web# ls -l
total 368
drwxr-xr-x 2 web2 client0 111 2010-02-26 18:44 error
drwxr-xr-x 7 web2 client0 4096 2010-03-03 22:22 fileadmin
-rw-r--r-- 1 web2 client0 18348 2008-01-29 11:27 GPL.txt
-rw-r--r-- 1 web2 client0 13 2008-02-08 11:01 index.htm
-rw-r--r-- 1 web2 client0 2903 2008-01-29 11:27 index.php
drwxr-xr-x 3 web2 client0 4096 2010-03-02 18:32 misc
-rwxr-xr-- 1 web2 client0 34 2010-02-26 18:44 robots.txt
drwxr-xr-x 2 web2 client0 4096 2010-03-03 00:30 stats
drwxr-xr-x 7 web2 client0 4096 2010-03-03 19:06 t3lib
drwxr-xr-x 13 web2 client0 4096 2010-03-03 11:21 typo3
drwxrwxrwx 5 web2 client0 4096 2010-03-03 22:22 typo3conf
drwxrwxrwx 11 web2 client0 20480 2010-03-03 22:22 typo3temp
drwxr-xr-x 14 web2 client0 4096 2010-03-03 22:22 uploads
Recent comments
11 hours 8 min ago
14 hours 3 min ago
15 hours 17 min ago
16 hours 41 min ago
18 hours 18 min ago
19 hours 47 min ago
21 hours 1 min ago
1 day 12 hours ago
1 day 13 hours ago
1 day 17 hours ago