Date: Sat, 15 Jun 2002 00:32:45 -0400 From: Josh Levine <joshl@levindustries.com> To: freebsd-java@freebsd.org Subject: JAVA+PHP+Apache on FreeBSD - Success! Message-ID: <3D0AC36D.C72E688B@levindustries.com>
next in thread | raw e-mail | index | archive | help
Searching the archives I noticed people have asked questions about this in the past, so I figured I'd post a few notes on how I got it working... - Build jdk13 with native threads (make -DWITH_NATIVE_THREADS) - Build Apache with POSIX threads (export LDFLAGS="-pthread -lc_r") - Add /usr/local/jdk1.3.1/jre/lib/i386 to ldconfig_paths in /etc/rc.conf (make sure to copy over the existing paths from /etc/defaults/rc.conf) - Build PHP with Java (--with-java=/usr/local/jdk1.3.1) - Rename the java.so file that the PHP build created to libphp_java.so and make sure it is in the extensions directory definie in the php.ini file Contents of the [Java] section of my php.ini: [Java] java.class.path = /usr/local/lib/php/php_java.jar:/usr/local/jdk1.3.1/jre/lib/rt.jar 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/lib/php/extensions:/usr/local/jdk1.3.1/jre/lib/i386:/usr/local/jdk1.3.1/jre/lib/i386/native_threads extension=libphp_java.so I hope this helps someone out, Josh Levine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D0AC36D.C72E688B>