Okay kurze Beschreibung: Ich habe hier eine Debian-Server aufgesetzt mit LAMP. Das hat auch soweit alles gefunzt nun wollte ich aber PHP4 und PHP5 parallel laufen lassen und habedas dann nach dem Tutorial versucht. Nun läuft PHP4 als Mod und Php5 sollte als CGI laufen nur geht das nicht. Ich habe allerdings keine Ahnung warum.
Da ich der Meinung bin ich habe mir meine Grauen Zellen schon genug zermartert dürft ihr jetzt ran, ich hoffe mit mehr erfolg als ich
Hier noch meine fastcgi.conf:
Zitat
FastCgiServer /var/www/php-fcgi-starter
AddHandler php-fastcgi .php5
<Location /var/www/php-fcgi-starter>
SetHandler fastcgi-script
Options +ExecCGI
</Location>
Action php-fastcgi /var/www/php-fcgi-starter
AddType application/x-httpd-php .php5
AddHandler php-fastcgi .php5
<Location /var/www/php-fcgi-starter>
SetHandler fastcgi-script
Options +ExecCGI
</Location>
Action php-fastcgi /var/www/php-fcgi-starter
AddType application/x-httpd-php .php5
Hier der Vhost(nicht der komplette sondern nur der CGI betreffende Teil)
Zitat
ScriptAlias /cgi-bin/ /var/www
<Directory "/var/www">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
Und hier noch die php-fastcgi-starter
Zitat
PHPRC="/usr/local/php5"
export PHPRC
PHP_FCGI_CHILDREN=10
export PHP_FCGI_CHILDREN
exec /usr/local/php5/bin/php-fcgi
export PHPRC
PHP_FCGI_CHILDREN=10
export PHP_FCGI_CHILDREN
exec /usr/local/php5/bin/php-fcgi
Gruß
Torian