From: <php...@li...> - 2007-03-21 18:46:24
|
On 3/21/07, php...@li... < php...@li...> wrote: > > Hi, > > [please excuse the delay] No problem. Thanks a lot for the help you're providing. > When I run the install.sh script it overwrites my > > php.ini with the PHP/Java Bridge configuration. > > It doesn't do this if you php installation supports an > /etc/php.d/ directory. Please see the php --configure > help for details (php's configure, not the bridge > configure script). > > > > install.sh created to my original php.ini, the > > extension just doesn't load. > > The only thing the extension need is a > > extension=3Djava.so > > entry. Ok... it took me a while but I finally got it working. It was one of those time when you try hundreds of different things and by the end you don't kno= w if what you're trying you have already done it or not. The thing is that my php.ini was loading the extensions from extension_dir = =3D "/usr/local/php/lib/extensions/" and the java.so was installed on /usr/local/php/lib/extensions/no-debug-non-zts-20050922/ What I don't know is why it didn't work when I copied every file from usr/local/php/lib/extensions/no-debug-non-zts-20050922/ to /usr/local/php/lib/extensions/ Is there any way to change that installation path while configuring PHP/Jav= a Bridge? > In a previous email, Jost told me that PHP/Java > > Bridge does not care about > > CLASSPATH variable, > > Some older JDK may still read the CLASSPATH > environment variable. But since Apache discards all > environment variables and executes in a clean > environment you cannot pass it to the VM (if you want > to run the VM as a sub-component of Apache). Not even using putenv PHP function? Because I use that to configure some Oracle stuff. > getSystemResource method of the ClassLoader > > It should find the resources in the standard Java > repository, which is /usr/share/java/ext or > /usr/java/packages/lib/ext. > > > > So, how should I indicate where those > > Just modify the standard location using the > -Djava.ext.dirs=3D... option. If you want to pass this > option from Apache, use a wrapper script, please see > our FAQ for details. I saw the FAQ... does it mean that I should start Apache with apachectl -D java.ext.dirs=3D/path/to/my/confs ? I would rather work something out that did not envolve having to modify startup configuration. I'm using this to work with a java api, which would be a quite small part o= f a much larger application and would like to make it easier to deploy becaus= e most probably I won't be installing it. BTW: Isn't that backwards? If you want to load > resources from a user dir, why don't you simply use > getResource() instead of getSystemResource()? Might be. I read something like that, the problem is that the getSystemResource call is made from the API I'm working with (which source I don't have), and I have to work with that. Best regards, Andr=E9s Gattinoni ___________________________________________________________ > Der fr=FChe Vogel f=E4ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Ma= il: > http://mail.yahoo.de > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 Andr=E9s Gattinoni (=AF`=B7._.=B7[El Barto(r)]=B7._.=B7=B4=AF) (...) |