Anon
05-01-2001, 12:44 AM
Hi...
I'm rapidly being driven to insanity while trying to get PHP 4.04pl1 and Sun's JDK1.3 (for Linux) to play nice together.
I've installed the JDK in /usr/local/jdk1.3
PHP is installed under Apache 1.3.19 using apxs
The relevant bits of my php.ini file look as follows (apologies for the poor formatting):
java.class.path =/usr/local/jdk1.3/jre/lib/rt.jar:/usr/local/lib/php_java.jar
java.home = /usr/local/jdk1.3/jre
java.library = /usr/local/jdk1.3/jre/lib/i386/client/libjvm.so
java.library.path = /usr/local/jdk1.3/jre/bin/i386/native_threads
extension=libphp_java.so
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20001214/
I've tried setting my LD_LIBRARY_PATH to everything under the sun (namely the jre/lib/i386 and associated subdirs).
Whenever I start apache up and try access java via php, I get the infamous
[Tue May 1 08:59:32 2001] [notice] child pid 352 exit signal Segmentation fault
(11)
Entry in my error_log file.
Somebody must have gotten this working with this setup.
Any and all help will be greatly appreciated.
Nir Oren
I'm rapidly being driven to insanity while trying to get PHP 4.04pl1 and Sun's JDK1.3 (for Linux) to play nice together.
I've installed the JDK in /usr/local/jdk1.3
PHP is installed under Apache 1.3.19 using apxs
The relevant bits of my php.ini file look as follows (apologies for the poor formatting):
java.class.path =/usr/local/jdk1.3/jre/lib/rt.jar:/usr/local/lib/php_java.jar
java.home = /usr/local/jdk1.3/jre
java.library = /usr/local/jdk1.3/jre/lib/i386/client/libjvm.so
java.library.path = /usr/local/jdk1.3/jre/bin/i386/native_threads
extension=libphp_java.so
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20001214/
I've tried setting my LD_LIBRARY_PATH to everything under the sun (namely the jre/lib/i386 and associated subdirs).
Whenever I start apache up and try access java via php, I get the infamous
[Tue May 1 08:59:32 2001] [notice] child pid 352 exit signal Segmentation fault
(11)
Entry in my error_log file.
Somebody must have gotten this working with this setup.
Any and all help will be greatly appreciated.
Nir Oren