Tag!
Ich habe dieses nette HowTo auch mal hier auf meinem lokalen Testserver durchgearbeitet und bin auch ganz gut klargekommen.
Allerdings lässt sich das php-fcgi nur nutzen, wenn der eigentliche VHOST Ordner auch dem Benutzer gehört. Ansonsten bekomme ich einen HTTP/500 (Internal Server Error).
Kennt jemand das Problem? Schließlich wird ja im HowTo extra betont, dass diese Ordner auch root gehören sollen.
Ich poste euch mal meine Konfigurationen...
default_vhost:
Code: Select all
<VirtualHost *:80>
ServerAdmin stephan@localhost
DocumentRoot /var/www/php-fcgi-scripts/default_vhost/web
DirectoryIndex index.php index.html
SuexecUserGroup websrvboy websrvboy
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/php-fcgi-scripts/default_vhost>
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/php-fcgi-scripts/default_vhost/
<Directory "/var/www/php-fcgi-scripts/default_vhost">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
php-fcgi-starter:
Code: Select all
#!/bin/sh
PHPRC="/var/www/php-fcgi-scripts/default_vhost/conf"
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /home/seoman/downloads/php5/bin/php5-fcgi
Wenn default_vhost root gehört, siehts in der error.log so aus:
Code: Select all
[Fri Jul 15 19:54:37 2005] [error] [client 192.168.1.25] File does not exist: /var/www/php-fcgi-scripts/default_vhost/web/favicon.ico
[Fri Jul 15 19:55:08 2005] [error] [client 192.168.1.25] FastCGI: comm with server "/var/www/php-fcgi-scripts/default_vhost/php-fcgi-starter" aborted: idle timeout (30 sec)
[Fri Jul 15 19:55:08 2005] [error] [client 192.168.1.25] FastCGI: incomplete headers (0 bytes) received from server "/var/www/php-fcgi-scripts/default_vhost/php-fcgi-starter"
[Fri Jul 15 19:55:08 2005] [error] [client 192.168.1.25] File does not exist: /var/www/php-fcgi-scripts/default_vhost/web/favicon.ico
DIe Pfade stimmen, manuelle AUfrufe sind auch kein Thema. Wie gesagt läuft php ja, sobald ich
Code: Select all
# chown websrvboy:websrvboy default_vhost
mache.
Komisch...