Frage ist gelöstIspCP und phpfarm - Mehrere PHP-Versionen mit mod fcgid.c
24.01.2012
16:50:32 Uhr656 Aufrufe
3 Antworten
16:50:32 Uhr
3 Antworten
Noch nicht bewertet
Hallo zusammen,
ich hänge leider gerade an einem Problem mit mehreren PHP Versionen fest. Ich habe zum einen PHP 5.3.3 und bräuchte zusätzlich noch 5.2.11 für gewisse virtuelle hosts.
Hab ein Debian Squeeze laufen und die ispCP Version 1.0.7
Ich habe folgendes gemacht:
alles gut soweit. Dann folgende Anpassungen in Files....
/var/www/fcgi/mydomain.de/php5-fcgi-starter
/etc/apache2/ispcp/mydomain.de.conf:
after that reload apache - all good
Wenn ich jetzt auf mydomain.de gehe bekomme ich Error 500
Wo liegt mein Fehler? Ich komm nicht drauf.
Bin dankbar für jede Hilfestellung
Gruß
Steven
ich hänge leider gerade an einem Problem mit mehreren PHP Versionen fest. Ich habe zum einen PHP 5.3.3 und bräuchte zusätzlich noch 5.2.11 für gewisse virtuelle hosts.
Hab ein Debian Squeeze laufen und die ispCP Version 1.0.7
Ich habe folgendes gemacht:
01.
# cd var && git clone git://git.code.sf.net/p/phpfarm/code phpfarm 02.
# cd phpfarm/src && ./compile.sh 5.2.11alles gut soweit. Dann folgende Anpassungen in Files....
/var/www/fcgi/mydomain.de/php5-fcgi-starter
01.
#!/bin/sh 02.
03.
umask 022 04.
05.
PHPRC="/var/www/fcgi/mydomain.de/php5/" 06.
export PHPRC 07.
08.
TMPDIR="/var/www/virtual/mydomain.de/phptmp" 09.
export TMPDIR 10.
11.
PHP_FCGI_CHILDREN=2 12.
export PHP_FCGI_CHILDREN 13.
14.
exec /var/phpfarm/inst/php-5.2.11/bin/php-cgi/etc/apache2/ispcp/mydomain.de.conf:
01.
<IfModule mod_fcgi.c> 02.
FcgidWrapper On 03.
FcgidIpcDir /var/lib/apache2/fcgid/sock 04.
05.
FcgidWrapper /var/www/fcgi/mydomain.de/php5-fcgi-starter .php 06.
07.
# 08.
# PHP5 SUPPORT 09.
# 10.
11.
AddHandler fcgid-script .php .php5 12.
13.
<Location /php5/php5-fcgi-starter> 14.
SetHandler fastcgi-script 15.
Options +ExecCGI 16.
</Location> 17.
18.
Action php-fastcgi /php5/php5-fcgi-starter 19.
AddType application/x-httpd-php .php .php5 20.
</IfModule>after that reload apache - all good
Wenn ich jetzt auf mydomain.de gehe bekomme ich Error 500
01.
[Tue Jan 24 13:26:34 2012] [warn] [client 188.174.59.60] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server 02.
[Tue Jan 24 13:26:34 2012] [error] [client 188.174.59.60] Premature end of script headers: index.phpWo liegt mein Fehler? Ich komm nicht drauf.
Bin dankbar für jede Hilfestellung
Gruß
Steven
StefanKittel schreibt am 24.01.2012 um 17:42:24 Uhr
Hallo,
schau mal hier
http://www.soeren-hentzschel.at/technik/l ...
Ist allerdings für ispconfig, funktioniert mit meinem froxlor aber auch.
Wie ist der Stand bei ispcp. War doch schon tot oder?
Stefan
schau mal hier
http://www.soeren-hentzschel.at/technik/l ...
Ist allerdings für ispconfig, funktioniert mit meinem froxlor aber auch.
Wie ist der Stand bei ispcp. War doch schon tot oder?
Stefan
-Ryou- schreibt am 24.01.2012 um 19:11:20 Uhr
danke schon nicht schlecht. ispCP lebt!!!!
Hab den Error 500 jetzt losgebracht daür jetzt einen Error 403 Forbidden!
hab das in der ispcp.onf für die virtuellen hosts geändert
Apache Log spuckt nichts mehr aus. Und testweise habe ich die permissions auf 777 gesetzt, bringt auch nix.
Vll. ne Idee?
Gruss Steven
Hab den Error 500 jetzt losgebracht daür jetzt einen Error 403 Forbidden!
hab das in der ispcp.onf für die virtuellen hosts geändert
01.
<VirtualHost xx.xxx.xxx.xxx:80> 02.
03.
<IfModule suexec_module> 04.
SuexecUserGroup vu2017 vu2017 05.
<FilesMatch \.php$> 06.
SetHandler fcgid-script 07.
</FilesMatch> 08.
09.
AddHandler fcgid-script .php .php4 .php5 10.
FCGIWrapper "/var/www/fcgi/mydomain.de/php5-fcgi-starter" .php 11.
FCGIWrapper "/var/www/fcgi/mydomain.de/php5-fcgi-starter" .php5 12.
FCGIWrapper "/var/www/fcgi/mydomain.de/php5-fcgi-starter" .php4 13.
</IfModule> 14.
15.
ServerAdmin webmaster@mydomain.de 16.
DocumentRoot /var/www/virtual/mydomain.de/htdocs 17.
18.
ServerName mydomain.de 19.
ServerAlias www.mydomain.de mydomain.de vu2017.admin.s15800746.onlinehome-server.info 20.
21.
Alias /errors /var/www/virtual/mydomain.de/errors/ 22.
23.
RedirectMatch permanent ^/ftp[\/]?$ http://admin.s15800746.onlinehome-server.info/ftp/ 24.
RedirectMatch permanent ^/pma[\/]?$ http://admin.s15800746.onlinehome-server.info/pma/ 25.
RedirectMatch permanent ^/webmail[\/]?$ http://admin.s15800746.onlinehome-server.info/webmail/ 26.
RedirectMatch permanent ^/ispcp[\/]?$ http://admin.s15800746.onlinehome-server.info/ 27.
28.
ErrorDocument 401 /errors/401.html 29.
ErrorDocument 403 /errors/403.html 30.
ErrorDocument 404 /errors/404.html 31.
ErrorDocument 500 /errors/500.html 32.
ErrorDocument 503 /errors/503.html 33.
34.
<IfModule mod_cband.c> 35.
CBandUser mydomain.de 36.
</IfModule> 37.
38.
# httpd awstats support BEGIN. 39.
40.
# httpd awstats support END. 41.
42.
# httpd dmn entry cgi support BEGIN. 43.
ScriptAlias /cgi-bin/ /var/www/virtual/mydomain.de/cgi-bin/ 44.
<Directory /var/www/virtual/mydomain.de/cgi-bin> 45.
AllowOverride AuthConfig 46.
#Options ExecCGI 47.
Order allow,deny 48.
Allow from all 49.
</Directory> 50.
# httpd dmn entry cgi support END. 51.
52.
<Directory /var/www/virtual/mydomain.de/htdocs> 53.
# httpd dmn entry PHP support BEGIN. 54.
# httpd dmn entry PHP support END. 55.
Options -Indexes Includes FollowSymLinks MultiViews 56.
AllowOverride All 57.
Order allow,deny 58.
Allow from all 59.
</Directory> 60.
61.
# httpd dmn entry PHP2 support BEGIN. 62.
<IfModule mod_php5.c> 63.
</IfModule> 64.
#<IfModule mod_fastcgi.c> 65.
# ScriptAlias /php5/ /var/www/fcgi/mydomain.de/ 66.
# <Directory "/var/www/fcgi/mydomain.de"> 67.
# AllowOverride None 68.
# Options +ExecCGI -MultiViews -Indexes 69.
# Order allow,deny 70.
# Allow from all 71.
# </Directory> 72.
#</IfModule> 73.
<IfModule mod_fcgi.c> 74.
FcgidWrapper On 75.
FcgidIpcDir /var/lib/apache2/fcgid/sock/ 76.
77.
FCGIWrapper "/var/www/fcgi/mydomain.de/php5-fcgi-starter" .php 78.
79.
# 80.
# PHP5 SUPPORT 81.
# 82.
83.
AddHandler fcgid-script .php .php5 84.
85.
<Location /php5/php5-fcgi-starter> 86.
SetHandler fastcgi-script 87.
Options +ExecCGI 88.
</Location> 89.
90.
Action php-fastcgi /php5/php5-fcgi-starter 91.
AddType application/x-httpd-php .php .php5 92.
</IfModule> 93.
94.
95.
# httpd dmn entry PHP2 support END. 96.
97.
Include /etc/apache2/ispcp/mydomain.de.confApache Log spuckt nichts mehr aus. Und testweise habe ich die permissions auf 777 gesetzt, bringt auch nix.
Vll. ne Idee?
Gruss Steven
-Ryou- schreibt am 25.01.2012 um 14:41:19 Uhr
ok hab glaub noch ein anderes Problem
es müsste doch versionPHP 5.2.11 (cgi-fcgi)
heißen oder?
ich hab wie folgt installiert:
Was übersehe ich?
01.
/usr/bin/php5-cgi --versionPHP 5.3.3-7+squeeze3 with Suhosin-Patch (cgi-fcgi) (built: Jun 28 2011 08:20:54)Copyright (c) 1997-2009 The PHP Group 02.
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies 03.
with the ionCube PHP Loader v4.0.12, Copyright (c) 2002-2011, by ionCube Ltd. 04.
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH01.
/usr/bin/php52/php-cgi --versionPHP 5.2.11 (cgi) (built: Jan 25 2012 00:09:11)Copyright (c) 1997-2009 The PHP Group 02.
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologieses müsste doch versionPHP 5.2.11 (cgi-fcgi)
heißen oder?
ich hab wie folgt installiert:
01.
./configure --prefix=/usr/share/php52 --datadir=/usr/share/php52 --mandir=/usr/share/man --bindir=/usr/bin/php52 --with-libdir=lib64 --includedir=/usr/include --sysconfdir=/etc/php52/apache2 --with-config-file-path=/etc/php52/apache2 --with-config-file-scan-dir=/etc/php52/conf.d --enable-fastcgi 02.
03.
make 04.
make installWas übersehe ich?






