I am currently using PHP 4.3.3 with Apache 1.3.28 and j2sdk1.4.0_02 on Redhat 7.1
I have php compiled --with-java and my ini file contains the following.
[Java]
extension_dir = /usr/src/php-4.3.3/modules
extension=java.so
java.class.path = /usr/local/jaf-1.0.2/activation.jar:/usr/local/lib/php/php_java.jar:/usr/local/activeSpellCheck/activeSpellCheck.jar:/usr/local/j2sdk1.4.0_02/jre
java.home = /usr/local/j2sdk1.4.0_02/jre
java.library = /usr/local/j2sdk1.4.0_02/jre/lib/i386/server/libjvm.so
I purposely left of the library.path because it was generating errors that went away when I took it off.
I have restarted apache and even rebooted the computer after setting the CLASSPATH in my /etc/profile folder.
The Problem
If I ssh into my box and go to my web folder and run the command
php ./javatest.php
it will run the php code and generate the java object which returns the version of java and the current date and time nested within appropriate html tags. It appears to be working fine. However if you go to the web page, it loads and loads until finally it times out. Nothing is ever displayed.
At first I thought it was a permissions issue, but I don't know what I could change. I can run it on the box as any user (other than www because it won't let me su to www).
I have tried to lynx to it, used both ie and netscape, and even telnet on port 80 sending a get command. All of them hang.
I have no other issues with php. All of my pages that don't use java come up just fine.
I have searched the internet and can't find this issue addressed anywhere. Any ideas?
Thanks,
Trenton.