Tony Collen wrote:

Michael Wechner wrote:

I would like to try out the PhpGenerator and followed the Wiki step by step

http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator

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 anyway:


Download FLEX
=============

http://forums.devshed.com/archive/5/2003/05/4/62931
http://sunsite.utk.edu/Solaris-X86/prgms7/flex-2.5.4a-admin.html



Download PHP
============

http://ch2.php.net/get/php-4.3.3.tar.gz/from/a/mirror



Build PHP
=========

http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator

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
make
(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 /home/michiii/build/jakarta-tomcat-4.0.6/webapps/php/WEB-INF/.
cp test.php /home/michiii/build/jakarta-tomcat-4.0.6/webapps/php/.
export LD_LIBRARY_PATH=/usr/local/lib/php
./startup.sh




Cocoon PHPGenerator
===================

http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator

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


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



HTH


Michael



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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to