Dear PHP experts,

I am trying to install PHP as a servlet. I have Apache+Tomcat (Apache
v1.3.17, PHP 4.0.4pl1, Tomcat 3.2.1) running with mod_jk fine as far as I
can tell: I have no problem executing ordinary servlets and jsp. I have
merged the web.xml file into examples/web.xml and made a php subdirectory.
The problem is, when I try to execute PHP, I get the following error:

java.lang.UnsatisfiedLinkError: no php_java  (libphp_java.so) in
java.library.path
[Stack dump here]

Upon reload of the page, I get
java.lang.UnsatisfiedLinkError: send
which I assume is just a byproduct of the larger problem, namely:

>From what I understand, what this means is that it's finding
net.php.servlet fine, and then from there, it's trying to ldopen
libphp_java.so, but it can't find it in the java.library.path. So, I set
the LD_LIBRARY_PATH environment variable to the directory containing
libphp_java.so, namely
/usr/local/lib/php/extensions/no-debug-zts-20001214/

Having done that, when I restart Tomcat, the following happens: 

java.lang.UnsatisfiedLinkError: 
/usr/local/lib/php/extensions/no-debug-zts-20001214/libphp_java.so: 
/usr/local/lib/php/extensions/no-debug-zts-20001214/libphp_java.so: undefined
symbol: _zval_ptr_dtor

Can anyone help? Basically we have just been fiddling with httpd.conf,
tomcat.conf, tomcat.properties, php.ini (I don't think it ever gets that
far, but worth a shot), ld.so.conf, trying to get it to do something. I
didn't see a java.library.path directive in tomcat.properties. Should
there be one there? Or am I totally on the wrong track?

If anyone out there can help, such as Sam Ruby for instance ;), I would be
MOST appreciative. Me and the sysadmin have been banging our heads against
this for days, and I need to show my boss that this really can work, or
else he's going to make me give up. Please CC me on the response, since I
am not yet subscribed to this list, since I don't think I can handle the
traffic.

Thanks very much.

Clark


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to