I've a prod. Env. RedHat EL3, j2sdk1.4.2.05, apache 2.0.54 php5.0.4
compiled with './configure' '--host=i686-redhat-linux'
'--build=i686-redhat-linux' '--target=i686-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
'--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share'
'--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec'
'--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2'
'--with-db4=/usr' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-pcre=/usr' '--with-zlib'
'--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex'
'--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared'
'--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-unixODBC=shared' '--enable-memory-limit'
'--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--with-imagick' '--enable-mcal'
'--with-apxs2filter=/usr/sbin/apxs', php-java-bridge compiled with
./configure --host=i686-redhat-linux --build=i686-redhat-linux
--target=i686-redhat-linux-gnu --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --cache-file=../config.cache
--with-java=/usr/java/j2sdk1.4.2_05 \
My /etc/php.d/java.ini:
extension = java.so
[java]
java.log_level=1
java.log_file=/var/log/php-java-bridge.log
# Comment out the following line if you want to start java
# automatically as a sub-process of the Apache 2.0 service or if you
# have already started multicast backends for failover/load balancing.
; java.socketname=/var/run/.php-java-bridge_socket
java.java_home=/usr/java/j2sdk1.4.2_05
java.java=/usr/java/j2sdk1.4.2_05/bin/java
And it works fine as an apache sub-process :)
Enabling java.socketname, the script php-java-bridge fails:
Starting php-java-bridge: Error: PHP/Java Bridge module not installed.
[FAILED]
I've noticed that the script fails because I've no output from the php cli:
for example php -v gives me no output.
Disabling the option ; java.socketname=/var/run/.php-java-bridge_socket in
my java.ini, php -v and the other commands work!
Haow could I enable the php-java -bridge as a service?????
Any ideas??????
Tanx Michele
|