cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <>
Subject Re: PhpGenerator does not return an answer
Date Tue, 09 Sep 2003 18:13:58 GMT
Tony Collen wrote:

> Michael Wechner wrote:
>> I would like to try out the PhpGenerator and followed the Wiki step 
>> by step
>> and everything worked fine, but when I request the php file, then
>> the browser just keeps browsing and the server doesn't really respond.
> Well, I wrote the docs based on all the information that I could find, 
> and the stuff that I already knew.  The sad part is that I could never 
> get it working, either :( 

ok, I finally got it run at least as a servlet. The major problem now is 
that it chrashes after a couple hits. Other people also reported that
kind of problem, but it seems that it never got fixed.Here are my steps 

Download FLEX

Download PHP

Build PHP

tar -xzf php-4.3.3.tar.gz
cd php-4.3.3
export CFLAGS ="-O3 -mcpu=i686 -march=i686 -malign-functions=4  -pthread 
-g3 -Wall -DZTS -prefer-pic"
./configure --with-servlet --with-java=/usr/local/j2sdk1.4.2  --enable-debug
export PATH=/usr/local/j2sdk1.4.2/bin:$PATH
export CLASSPATH=/home/michi/build/tomcat/common/lib/servlet.jar
(su; make install; php -f test.php)

Integrate into Tomcat 4.0.6

cp sapi/servlet/phpsrvlt.jar ../cocoon-2.1/lib/local/.
mkdir -p /home/michiii/build/jakarta-tomcat-4.0.6/webapps/php/WEB-INF/
cp sapi/servlet/web.xml 
cp test.php /home/michiii/build/jakarta-tomcat-4.0.6/webapps/php/.
export LD_LIBRARY_PATH=/usr/local/lib/php

Cocoon PHPGenerator

cp sapi/servlet/phpsrvlt.jar ../cocoon-2.1/lib/local/.
./ clean

One thing missing within the Wiki is the LD_LIBRARY_PATH which is needed 
to find the library



>> The PHP file should be ok, because it works when calling "php -f 
>> test.php".
>> There are no error log messages, etc.
>> Am I missing something or has anyone the same experience?
>> (I am using Cocoon-2.1 release and JDK1.4.2 on Linux)
> I think there was talk a while ago on either this list or on -dev 
> where it was mentioned that if we couldn't get the PHPGenerator 
> working again, that it might get moved back to scratchpad -- I don't 
> think that ever actually happened, though.  I think the real problem 
> is within the PHP Servlet that is included with the PHP source 
> itself.  I'm not even sure if that ever worked correctly.
> Regards,
> Tony
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message