Hai Luong wrote:
How can I run PHP in standalone mode?
If you ./configure without apxs you'll get a php executable
(meant to be used for CGI) which you can run against a
.php script and your java should work in this case provided
you did everything I mentioned in my earlier post.
However, as I said, for some reason when trying to load the
IBM java libraries into Apache (with PHP running as a DSO) I
couldn't get it to work. I did get it to work with the
Blackdown 1.2.2 JDK. The latter seems to be a little more
graceful in loading all of its necessary libraries without too
many external dependencies (e.g. LD_LIBRARY_PATH).
Someone in the archives mentioned that they had some
success with using LD_PRELOAD on the java libraries prior
to starting apache but I couldn't get it to work with the
IBM JDK.
Make sure you read the README in the php/ext/java directory
carefully if you haven't already done so.
Alex