Hello all -
Okay, so I'm trying to accomplish this seemingly impossible feat of config file mastery, and for a day and a half now I've been stuck. I've exhausted my resources on the web, in person, in text, and anything else you can think of. Everyone seems to have partial information about this solution, a lot of it old, even more of it for Windows, and nearly all of it too scenario-specific. I'm wondering if anyone can help.
Stats: PHP 4.1.1, Sun's JDK 1.3.1_02, JBoss-Tomcat 2.4.4, RedHat 7.2
Current fun error:
Fatal error: Unable to load Java Library /usr/local/SunJDK13/jre/lib/i386/libjava.so, error: libverify.so: cannot open shared object file: No such file or directory in /usr/local/apache/htdocs/test.php on line 3
Relevant configs:
php.ini:
[Java]
java.home = /usr/local/SunJDK13
java.class.path = /usr/local/lib/php/php_java.jar
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20010901
extension = libphp_java.so
java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20010901
java.library = /usr/local/SunJDK13/jre/lib/i386/libjava.so
/etc/ld.so.conf:
/usr/local/SunJDK13/jre/lib/i386
/usr/local/SunJDK13/jre/lib/i386/server
PHP configure line:
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs \
--with-zlib --enable-track-vars --with-xml --with-gd --enable-gd-native-tt \
--with-freetype-dir --enable-trans-sid --disable-magic-quotes --with-openssl \
--with-servlet=/usr/local/jboss/catalina/common --with-java=/usr/local/SunJDK13
Global environment variables (in /etc/profile):
export CLASSPATH=/usr/local/SunJDK13/jre/lib/i386/native_threads:/usr/local/jboss/catalina/common/lib/phpsrvlt.jar:/usr/local/SunJDK13/jre/lib/i386/classic:/usr/local/SunJDK13/jre/lib
export LD_LIBRARY_PATH=/usr/local/SunJDK13/jre/bin:/usr/local/IBMJDK13/jre/bin/classic
I've tried many, many different configurations of all these things, to no avail. I've tried using libjvm.so instead of libjava.so as the java.library (JVM) in php.ini. I have the SunJDK13/jre/lib/i386 .so files symlinked into native_threads. Yep, I ran ldconfig after changing /etc/ld.so.conf. I've restarted the server several times, Apache dozens of times, and my login many times as well.
libverify.so, the file reported in the error, resides in /usr/local/SunJDK13/jre/lib/i386 alongside libjava.so...and it somehow can't find it.
It seems to me that paths just need to be adjusted somewhere, but where?? There are lots of places, and nothing has worked for me so far.
Well, yes, it's long. 🙂 But I hope that someone can lend a helping hand, mind, and few minutes, and I extend my extreme gratitude to any who are able.
-Jeremy