httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Fellows <lfell...@4lane.com>
Subject Re: Apache+PHP+Java
Date Mon, 17 Jun 2002 11:57:14 GMT
You might try PassEnv to pass the LD_LIBRARY_PATH through to 
your PHP script.

On Fri, 2002-06-14 at 18:33, Josh Levine wrote:
> Hi - I'm having some problems getting Java support in PHP under Apache
> on FreeBSD 4.6-RELEASE, and was wondering if anyone has any ideas.
> 
> Here's what I've done so far:
> 
> I installed the FreeBSD JDK13 port and then re-compiled PHP with Java
> support.  When I tried running a script with Java, Apache returned:
> Fatal error: Unable to create Java Virtual Machine in
> /usr/home/research/htdocs/java.php on line 3
> 
> and put this in the error log:
> Cannot open "/usr/local/jdk1.3.1/jre/lib/i386/native_threads/libhpi.so"
> 
> Based on a few Google searches, I re-compiled JDK13 WITH_NATIVE_THREADS
> 
> and Apache started logging this error message:
> /usr/local/jdk1.3.1/jre/lib/i386/native_threads/libhpi.so: Undefined
> symbol "pthread_mutex_init"
> 
> so, based on more Google searches I tried re-compiling Apache with this
> in my environment:
> LDFLAGS="-lpthread"
> 
> I got an error in the make, so I tried:
> -pthread and -lc_r
> 
> and that seemed to work.
> 
> Now Apache is logging this in the error log:
> Can't load library "/usr/local/jdk1.3.1/jre/lib/i386/libjava.so",
> because Shared object "libverify.so" not found
> httpd
> # locate libverify.so
> /usr/local/jdk1.3.1/jre/lib/i386/libverify.so
> 
> I have this in my php.ini file:
> [Java]
> java.class.path =
> /usr/local/lib/php/php_java.jar:/usr/local/jdk1.3.1/jre/lib/rtjar.zip
> java.home = /usr/local/jdk1.3.1
> java.library = /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so
> java.library.path =
> /usr/local/jdk1.3.1/jre/lib/i386/classic:/usr/local/jdk1.3.1/jre/lib/i386
> extension=java.so
> 
> and I've tried adding this to my apachectl script:
> export LD_LIBRARY_PATH=/usr/local/jdk1.3.1/jre/lib/i386
> 
> Any other suggestions?  Is there some other way for me to tell Apache
> where to find libverify.so?
> 
> Thanks in advance,
> Josh Levine
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message