Hi all,
I'm trying to enable Java support in PHP, but I've some problems. My PHP compile options looks like:
./configure \
--prefix=%{prefix} \
--with-config-file-path=%{sysconfdir} \
--disable-debug \
--enable-pic \
--enable-shared \
--enable-inline-optimization \
--with-exec-dir=%{bindir} \
--with-regex=system \
--with-gettext \
--with-gd \
--with-jpeg-dir=%{prefix} \
--with-png \
--with-png-dir=%{prefix} \
--with-zlib \
--with-zlib-dir=%{prefix} \
--with-xpm-dir=%{_prefix}/X11R6 \
--with-gdbm \
--enable-debugger \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-yp \
--enable-ftp \
--enable-wddx \
--without-mysql \
--without-oracle \
--without-oci8 \
--with-xml \
--with-dom \
--enable-trans-sid \
--with-ttf \
--with-qtdom \
--with-gettext \
--with-kerberos=/usr/kerberos \
--with-openssl \
--with-java=/usr/lib/jdk-1.3.1
I've installed JDK 1.3.1 from Sun. When I try to start apache, it doesn't start if I load PHP module. No error is given, but $? = 0.
Here is my php.ini file:
[java]
java.class.path=/usr/lib/php4/php_java.jar
java.library.path=/usr/lib/php4/
extension_dir=/usr/lib/php4/
extension=libphp_java.so
php_java.jar is in /usr/lib/php4
libphp_java.so is in /usr/lib/php4
If I compile PHP only with java support, apache run happy and PHP better, but I still need the other compilation options.
Any suggestions?
Thanks
Riccardo