|
From: Francis L. (QC/EMC) <fra...@er...> - 2005-09-20 14:41:07
|
Hi everyone !
I am having a hard time installing the brige. Yesterday I lost many hours
trying to figure out how to correctly install the bridge with java 1.5 on
FC4_i386 with preinstalled apache (v2.0.54) and php (v5.0.4).
I already installed it from source on RH8 and RHE 3, but I was also
installing apache and php, so it was really straightforward and without
hiccups.
So I have two questions :
1) If I install the bridge from an rpm (i.e. FC4 i386), should I be able to
change the java.java_home and java.java from v1.4.2 to v1.5 java files ?
I tried it but I had some strage errors about wrong parameters in the
Bridge... so I guess that the bridge is using some version specific stuff...
:(
2) After removing the bridge rpm, I compiled the source with java 1.5,
installed the 'service' link and the exec.
The phpinfo.php page shows that java is running, except that 2 fields are
null :
- java.libpath
- java.classpath
putting them in the java.ini does not work.
The weird thing is that we were successful to install the exact same setup,
except that the os is FC4_x64 (amd).
Thanks !!
Francis Leblanc
-------------------------------------------------------------------------
echo '<?php phpinfo() ?>' | php | fgrep java
/etc/php.d/java.ini,
java
java support => Enabled
java bridge => 2.0.8RC5
java.libpath =>
java.classpath =>
java.java_home => /usr/java/jdk1.5.0_04
java.java => /usr/java/jdk1.5.0_04/bin/java
-DEHMP_CONFIG_FILE=/var/www/html/Web/config/iptvconfig.xml
java.log_file => /var/log/php-java-bridge.log
java.log_level => 4
java.hosts =>
java.servlet => Off
java command => JAVA_HOME=/usr/java/jdk1.5.0_04
LD_LIBRARY_PATH=/usr/lib/php/modules: /usr/lib/php/modules/RunJavaBridge
/usr/java/jdk1.5.0_04/bin/java
-DEHMP_CONFIG_FILE=/var/www/html/Web/config/iptvconfig.xml
-Djava.library.path=/usr/lib/php/modules
-Djava.class.path=/usr/lib/php/modules/JavaBridge.jar
-Djava.awt.headless=true php.java.bridge.JavaBridge
LOCAL:/var/run/.php-java-bridge_socket 4 /var/log/php-java-bridge.log
java status => running
java server => /var/run/.php-java-bridge_socket
JAVA_HOME => /usr/java/jdk1.5.0_04
_SERVER["JAVA_HOME"] => /usr/java/jdk1.5.0_04
_ENV["JAVA_HOME"] => /usr/java/jdk1.5.0_04
|