From: Irfan M. <irf...@gm...> - 2005-10-13 17:10:50
|
Thanks a lot. This was really helpful. On 10/13/05, Jost Boekemeier <jos...@ya...> wrote: > Hi Mohammed, > > > knows where the jvm > > gets initialized and started so that i can set some > > env variables that > > when the RunJavaBridge executable exists in the php > extension dir it will be called instead of java, > please see the "java command" from phpinfo() for > details. > > On RedHat Fedora the following could be used: > > # rename RunJavaBridge > mv /usr/lib/php/modules/RunJavaBridge \ > /usr/lib/php/modules/RunJavaBridge.bin > > # create a custom RunJavaBridge script > cat >/usr/lib/php/modules/RunJavaBridge <<\EOF1 > #!/bin/sh > # This is a custom script which calls the JVM > # with additional arguments. > > $java=3D$1; shift > $args=3D"$@"; > $myArgs=3D"-Dphp.java.bridge.threads=3D30"; > > exec /usr/lib/php/modules/RunJavaBridge.bin \ > $java \ > $myArgs \ > $args > EOF1 > > # make our script executable. > chmod +x /usr/lib/php/modules/RunJavaBridge > > (The above example calls the saved RunJavaBridge.bin > because it still carries the javabridge_t security > context. If you don't have Security Enhanced Linux or > if you have tagged your RunJavaBridge script with > javabridge_t, you can remove the old RunJavaBridge.bin > and call java directly.) > > Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmeld= en: http://mail.yahoo.de > |