Nun habe ich alles eingerichtet und wollte mal testen. Es kam der Fehler 500 als ich die Seite aufrufen wollte. Also ein Fehler im System. Also mal in den log geschaut:
Code: Select all
2007-08-18 16:36:52: (mod_fastcgi.c.1712) connect failed: Permission denied on unix:/etc/lighttpd/fastcgi/synex/synex.socket
2007-08-18 16:36:52: (mod_fastcgi.c.2866) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
Code: Select all
root@blubb:/etc/lighttpd# ls /etc/lighttpd/fastcgi/synex/synex.socket
srwxrwx--- 1 synex www-data 0 2007-08-18 16:47 /etc/lighttpd/fastcgi/synex/synex.socket
Ich lasse Lighttpd über den User/die Group www-data laufen. Somit müsste er wirklich nicht zugreifen drüfen. Habe dann mal bei dem Starter Script anstatt Group "synex" die Group "www-data" genommen. Doch kam kein Erfolg.
Vielleicht könnt ihr mir mal helfen. Bin nach der Anleitung gegangen: http://trac.lighttpd.net/trac/wiki/HowT ... ermissions
Nun noch ein paar Infos:
Auszug aus der Lighttpd Config:
Code: Select all
$HTTP["host"] =~ "(^|.)synex-us.de$" {
server.document-root = "/home/synex/html"
accesslog.filename = "/etc/lighttpd/logs/synex/access.log"
fastcgi.server = ( ".php" =>
(
( "socket" => "/etc/lighttpd/fastcgi/synex/synex.socket",
"broken-scriptfilename" => "enable"
)
)
)
}
Code: Select all
#!/bin/sh
## ABSOLUTE path to the spawn-fcgi binary
SPAWNFCGI="/etc/lighttpd/bin/spawn-fcgi"
## ABSOLUTE path to the PHP binary
FCGIPROGRAM="/root/lamp/php/php5/bin/php-cgi"
## bind to tcp-port on localhost
FCGISOCKET="/etc/lighttpd/fastcgi/synex/synex.socket"
## uncomment the PHPRC line, if you want to have an extra php.ini for this user
## store your custom php.ini in /var/www/fastcgi/fred/php.ini
## with an custom php.ini you can improve your security
## just set the open_basedir to the users webfolder
## Example: (add this line in you custom php.ini)
## open_basedir = /var/www/vhosts/fred/html
##
#PHPRC="/etc/lighttpd/fastcgi/synex/"
## number of PHP childs to spawn in addition to the default. Minimum of 2.
## Actual childs = PHP_FCGI_CHILDREN + 1
PHP_FCGI_CHILDREN=2
## number of request server by a single php-process until is will be restarted
PHP_FCGI_MAX_REQUESTS=1000
## IP adresses where PHP should access server connections from
FCGI_WEB_SERVER_ADDRS="127.0.0.1"
# allowed environment variables sperated by spaces
ALLOWED_ENV="PATH USER"
## if this script is run as root switch to the following user
USERID=synex
GROUPID=synex
################## no config below this line
if test x$PHP_FCGI_CHILDREN = x; then
PHP_FCGI_CHILDREN=5
fi
export PHP_FCGI_MAX_REQUESTS
export FCGI_WEB_SERVER_ADDRS
export PHPRC
ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_MAX_REQUESTS FCGI_WEB_SERVER_ADDRS PHPRC"
# copy the allowed environment variables
E=
for i in $ALLOWED_ENV; do
E="$E $i=$(eval echo "$$i")"
done
# clean environment and set up a new one
env - $E $SPAWNFCGI -s $FCGISOCKET -f $FCGIPROGRAM -u $USERID -g $GROUPID -C $PHP_FCGI_CHILDREN
chmod 770 $FCGISOCKET