faqts : Computers : Programming : Languages : PHP : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

50 of 65 people (77%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How to setup java extension of php4.0 in linux
How to setup java extension of php4.0 in linux
How to setup java extension of php4.0 in linux

Jun 8th, 2000 00:33
jadebook liu, jadebook@nj.netbizsoft.com


How to setup java extension of php4.0 in linux:
----------------------------------------------------------
install blackdown jdk1.2.2 in Redhat6.1
and set PATH env (/path/to/jdk1.2.2/bin)

tar -xvf php-4.0.0.tar
tar -xvf apache_1.3.12.tar

php-4.0.0>./configure --with-java --with-config-file-
path=/usr/local/apache --with-apache=../apache_1.3.12 --enable-track-
vars

php-4.0.0>make; make install

apache_1.3.12>./configure --prefix=/usr/local/apache --
sysconfdir=/usr/local/apache/conf --activate-
module=src/modules/php4/libphp4.a --enable-shared=php4

apache_1.3.12>make; make install

*copy php.ini-dist in php source directory into /usr/local/apache/conf
*add java section into php.ini like this:

[java]
java.class.path=/usr/local/lib/php_java.jar
java.library.path=/usr/local/lib
extension=/usr/local/lib/libphp_java.so        

/usr/local/apache/bin/apachectl start