Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Apache, Lighttpd, nginx, Cherokee
Post Reply
[monk]
Posts: 163
Joined: 2002-08-09 17:31
Location: Ulm
Contact:
 

Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Post by [monk] »

Hallo,
ich habe mal vor langem nach dem php-fcgi-starter howto mein php5 eingebunden.

Nachdem ich jetzt php4 von suphp auf fcgi auch umrüsten wollte ging gar nix mehr.

habe jetzt die Konfiguration komplet überarbeitet.
Die PHP files egal ob für php4 oder php5 werden immer gedownloadet und nicht von php verarbeitet.

anbei die Konfigurationsfiles.. hat jemand ne idee wo der Fehler liegt ?

Danke

Michael


Code: Select all

/var/log/apache2/suexec.log

[2005-06-30 15:34:37]: uid: (91000/91000) gid: (ftpusers/ftpusers) cmd: php5-fcgi-starter

Code: Select all

/var/log/apache2/error.log

[Thu Jun 30 15:34:37 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
[Thu Jun 30 15:34:37 2005] [notice] FastCGI: wrapper mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
[Thu Jun 30 15:34:37 2005] [notice] FastCGI: process manager initialized (pid 18930)
[Thu Jun 30 15:34:37 2005] [warn] FastCGI: server "/var/www/php-fcgi-scripts/91000/php5-fcgi-starter" (uid 91000, gid 104) started (pid 18931)
[Thu Jun 30 15:34:37 2005] [notice] Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/mod_fastcgi-SNAP-0404142202 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_chroot/0.4 configured -- resuming normal operations

Code: Select all

/etc/apache2/mods-enabled/fastcgi.conf

FastCgiWrapper /usr/lib/apache2/suexec2
FastCgiServer /var/www/php-fcgi-scripts/91000/php5-fcgi-starter -user 91000 -group ftpusers

AddHandler php5-fastcgi .php5
AddHandler php4-fastcgi .php

<Location /php-cgi-bin/php5-fcgi-starter>
        SetHandler fastcgi-script
        Options +ExecCGI
</Location>
<Location /php-cgi-bin/php4-fcgi-starter>
        SetHandler fastcgi-script
        Options +ExecCGI
</Location>

Action php5-fastcgi /php-cgi-bin/php5-fcgi-starter
Action php4-fastcgi /php-cgi-bin/php4-fcgi-starter

AddType application/x-httpd-php .php5
AddType application/x-httpd-php .php


Code: Select all

www:/var/www/php-fcgi-scripts/91000# ll
insgesamt 8
-rwxr-xr-x  1 91000 ftpusers 81 2005-06-30 13:26 php4-fcgi-starter
-rwxr-xr-x  1 91000 ftpusers 81 2005-06-30 13:26 php5-fcgi-starter

Code: Select all

/var/www/php-fcgi-scripts/91000/php4-fcgi-starter
#!/bin/sh
PHPRC="/var/www/91000/conf/php4"
export PHPRC
exec /home/php4/bin/php

Code: Select all

/var/www/php-fcgi-scripts/91000/php5-fcgi-starter
#!/bin/sh
PHPRC="/var/www/91000/conf/php5"
export PHPRC
exec /home/php5/bin/php

Code: Select all

/home/php5/bin/php -v

PHP 5.0.3 (cgi-fcgi) (built: Dec 19 2004 17:09:53)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

Code: Select all

/home/php4/bin/php -v

PHP 4.3.11 (cgi-fcgi) (built: Jun 30 2005 12:26:11)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Code: Select all

<VirtualHost *>

        ScriptAlias /php-cgi-bin/ /var/www/php-fcgi-scripts/91000/
        <Directory "/var/www/php-fcgi-scripts/91000">
                AllowOverride None
                Options +ExecCGI -MultiViews -Indexes
                Order allow,deny
                Allow from all
        </Directory>
[...]
</VirtualHost>
Last edited by [monk] on 2005-07-01 09:42, edited 1 time in total.
[monk]
Posts: 163
Joined: 2002-08-09 17:31
Location: Ulm
Contact:
 

Re: Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Post by [monk] »

inzwischen habe ich festgestellt das mein lokaler proxy hier zuviel gecached hat ;)
php5 funktioniert einwandfrei.
allerdings klappt php4 immer noch nicht

die errorlog spuckt folgendes aus, nachdem der apache mir nen 500er fehler gegen den kopf wirft.

hat jemand ne idee ?

[Thu Jun 30 16:51:45 2005] [warn] FastCGI: (dynamic) server "/var/www/php-fcgi-scripts/91000/php4-fcgi-starter" (uid 91000, gid 104) started (pid 19254)
[Thu Jun 30 16:51:45 2005] [warn] FastCGI: (dynamic) server "/var/www/php-fcgi-scripts/91000/php4-fcgi-starter" (pid 19254) terminated due to uncaught signal '11' (Segmentation fault)



suexec verhält sich ganz normal:
[2005-06-30 16:51:43]: uid: (91000/91000) gid: (ftpusers/ftpusers) cmd: php5-fcgi-starter
[2005-06-30 16:51:45]: uid: (91000/91000) gid: (104/104) cmd: php4-fcgi-starter


Gruß

Michael
greenrover
Posts: 203
Joined: 2004-12-17 19:34
Contact:
 

Re: Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Post by greenrover »

wiso willst du denn php4 und php5 haben ???

reicht dir nicht eines von beiden???

bzw, php5 kann doch alles was php4 kann.
[monk]
Posts: 163
Joined: 2002-08-09 17:31
Location: Ulm
Contact:
 

Re: Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Post by [monk] »

GreenRover wrote:wiso willst du denn php4 und php5 haben ???

reicht dir nicht eines von beiden???

bzw, php5 kann doch alles was php4 kann.
Es gibt Scripte, welche nicht unter PHP5 laufen aber unter PHP4. PHP5 ist nicht 100%ig abwärtskompatibel..

Es hätte so sein sollen jedoch ist es nicht so.

Problemlösung: Auf PHP 4.3.10 gedowngradet
PHP 4.3.10 funktioniert mit den selben compile parametern einwandfrei. PHP 4.3.11 funktioniert mit den parametern nicht. Evtl. ein Bug in der .11er Version ?



Gruß
Michael
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Post by Joe User »

php.ini -> zend.ze1_compatibility_mode = On
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
[monk]
Posts: 163
Joined: 2002-08-09 17:31
Location: Ulm
Contact:
 

Re: Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Post by [monk] »

Joe User wrote:php.ini -> zend.ze1_compatibility_mode = On
Habe ich mal testweise probiert.
Der Fehler tritt dennoch mit der 11er Version auf.

Gruß

Michael
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Problem gelöst: php wird nicht geparsed (php-fcgi-starter)

Post by Joe User »

[MONK] wrote:
Joe User wrote:php.ini -> zend.ze1_compatibility_mode = On
Habe ich mal testweise probiert.
Der Fehler tritt dennoch mit der 11er Version auf.
Die Option gibt es auch nur unter PHP5.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Post Reply