[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php

ShaneLM do-not-reply at jboss.com
Thu Jun 11 17:48:00 EDT 2009


Peter, I'm hoping you still monitor this thread, as you seem to be the absolute guru when it comes to PHP integration into JBOSS. But don't let that prevent others from responding...i need all the help I can get!

I followed the instructions on this thread and successfully got PHP to work in JBOSS EAP 4.3 in a Windows environment. Now I'm trying to do the same on a linux environment. 

I downloaded the Linux i686 package from http://www.jboss.org/jbossweb/downloads/php/, and immediately noticed that it doesn't include the php executable like the windows package did. Hoping this is just a difference in operating systems, I proceeded to follow the directions at http://www.jboss.org/jbossweb/modules/php/index.html

I extracted the tar.gz, copied jbossweb-extras.jar, modified web.xml and server.xml, and added the LD_LIBRARY_PATH entry to run.conf. When I start up JBOSS and try to access a simple phpinfo script, I get the following error: 

java.lang.UnsatisfiedLinkError: no php5servlet in java.library.path, no libphp5servlet in java.library.path(/usr/java/jdk1.6.0_11/jre/lib/i386/server:/usr/java/jdk1.6.0_11/jre/lib/i386:/usr/java/jdk1.6.0_11/jre/../lib/i386:/bin/myproj/oe/app-server/jboss-4.3.0/PHP/lib:/usr/java/packages/lib/i386:/lib:/usr/lib) 
	org.jboss.web.php.Library.(Library.java:65)
	org.jboss.web.php.Library.initialize(Library.java:104)
	...

This confuses me because both the libphp5.so and libphp5servlet.so are in that /bin/myproj/oe/app-server/jboss-4.3.0/PHP/lib directory. Why can't it find them?

I was curious to see if the libraries had the same problem as the windows distribution which Peter fixed by dumping the contents of those 2 .so files, but I didn't see any reference to *.catalina.* in them.

Any ideas??


On a side note, I don't see a php.ini included in this distribution - how am I supposed to edit php settings?

Thanks so much - I've been struggling with this for the entire day...

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237147#4237147

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237147



More information about the jboss-user mailing list