StefanR
28.07.07, 09:57
Hallo,
auf einer SUSE 10.1 (64Bit) Box, von 1und1 brauchen wir für ein PHP Skript eine recht aktuelle PHP5 Version. Da auf dem Server noch nen Plesk 8.1.1 läuft, blieb mir eigentlich nur die Wahl zum FCGI Modus.
Die Prozedur, die ich auf dem 1und1 Server vollzogen habe, habe ich auf einer CentOS 4.3 Box auch schonmal vollzogen, da läuft das Teil heute noch ohne größere Probleme. Naja wie dem auch sei. PHP5.2.3 wurde in /usr/local kompiliert. Das Starterskript, liegt in /srv/www/vhosts/VHOST/bin (Verzeichnis, sowie Skript haben im Moment noch Chmod 755, wenn dat endlich läuft gehts auf 740 runter + immutable Bit für das Starterskript)
Meine vhost.conf sieht folgender Maßen aus:
AddHandler fcgid-script .php
DocumentRoot /srv/www/vhosts/VHOST/httpdocs/pub
# Brauch ich eigentlich nicht, weil wird schon httpd.include gesetzt
SuexecUserGroup VHOST_USER psacln
<Directory /srv/www/vhosts/VHOST/httpdocs>
php_admin_flag engine off
FCGIWrapper /srv/www/vhosts/VHOST/bin/php5-script .php
FCGIWrapper /srv/www/vhosts/VHOST/bin/php5-script .php5
#These directives are in the default httpd.include so skip it
#Options +Indexes
allow from all
</Directory>
Und das Starterskript ist eigentlich nix weltbewegendes:
#!/bin/sh
PHPRC=/srv/www/conf/cap-software.de
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /usr/local/php5/bin/php-cgi
Und das einzige, was suexec.log dazu einfällt ist das hier:
[2007-07-28 10:53:02]: uid: (10001/capsoftware) gid: (2524/2524) cmd: php5-script
[2007-07-28 10:53:02]: cannot stat program: (php5-script)
Der Vhost Error Log redet nur von den Primaten und das Standart Error Log, vom Apache wirft nen Notice mit das hier:
Skriptpfad...(communication error), terminated by calling exit(), return code: 117
Jemand ne Idee?
auf einer SUSE 10.1 (64Bit) Box, von 1und1 brauchen wir für ein PHP Skript eine recht aktuelle PHP5 Version. Da auf dem Server noch nen Plesk 8.1.1 läuft, blieb mir eigentlich nur die Wahl zum FCGI Modus.
Die Prozedur, die ich auf dem 1und1 Server vollzogen habe, habe ich auf einer CentOS 4.3 Box auch schonmal vollzogen, da läuft das Teil heute noch ohne größere Probleme. Naja wie dem auch sei. PHP5.2.3 wurde in /usr/local kompiliert. Das Starterskript, liegt in /srv/www/vhosts/VHOST/bin (Verzeichnis, sowie Skript haben im Moment noch Chmod 755, wenn dat endlich läuft gehts auf 740 runter + immutable Bit für das Starterskript)
Meine vhost.conf sieht folgender Maßen aus:
AddHandler fcgid-script .php
DocumentRoot /srv/www/vhosts/VHOST/httpdocs/pub
# Brauch ich eigentlich nicht, weil wird schon httpd.include gesetzt
SuexecUserGroup VHOST_USER psacln
<Directory /srv/www/vhosts/VHOST/httpdocs>
php_admin_flag engine off
FCGIWrapper /srv/www/vhosts/VHOST/bin/php5-script .php
FCGIWrapper /srv/www/vhosts/VHOST/bin/php5-script .php5
#These directives are in the default httpd.include so skip it
#Options +Indexes
allow from all
</Directory>
Und das Starterskript ist eigentlich nix weltbewegendes:
#!/bin/sh
PHPRC=/srv/www/conf/cap-software.de
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /usr/local/php5/bin/php-cgi
Und das einzige, was suexec.log dazu einfällt ist das hier:
[2007-07-28 10:53:02]: uid: (10001/capsoftware) gid: (2524/2524) cmd: php5-script
[2007-07-28 10:53:02]: cannot stat program: (php5-script)
Der Vhost Error Log redet nur von den Primaten und das Standart Error Log, vom Apache wirft nen Notice mit das hier:
Skriptpfad...(communication error), terminated by calling exit(), return code: 117
Jemand ne Idee?