note 29019 deleted from ref.java by aidan
| From: | aidan@php.net | Date: | Wed, 01 Sep 2004 00:09:46 +0000 |
| Subject: | note 29019 deleted from ref.java by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75810@lists.php.net to get a copy of this message | ||
Note Submitter: becki at web dot de
----
My solution for Suse 7.3, Sun Java 1.4.0 with PHP 4.3.0 as Command Line Interface (CLI) and dynamic
Apache module (DSO):
1. Make sure, that Php is compiled --with-apxs and --with-java.
If you dont know that, phpinfo() or "php -i" helps.
2. Edit usr/local/lib/php.ini :
[Java]
java.class.path= /usr/local/lib/php/php_java.jar
java.home= /usr/java/j2sdk1.4.0/jre
extension_dir= /usr/local/lib/php/extensions/no-debug-non-zts-20020429
extension= java.so
3. Create Symlink:
cd /usr/local/lib/php/extensions/no-debug-non-zts-20020429
ln -s java.so libphp_java.so
4. Edit /etc/init.d/apache :
Find the line:
LD_LIBRARY_PATH=some/path
and modify it to:
LD_LIBRARY_PATH=some/path:/usr/java/j2sdk1.4.0/jre/lib/i386:/usr/
java/j2sdk1.4.0/jre/lib/i386/server
And now restart apache with "rcapache restart"
Of course You have to adjust all pathnames to your needs!
Thanks to aruntheking at hotmail dot com and turman at dont-spam-me dot com. 'Hope this is
helpful for sombody else.