1 Reply Latest reply on Feb 24, 2011 9:47 AM by Peter Johnson

    Jboss and PHP on Linux

    Luca Zinni Newbie

      Hi everyone,

           I'm trying to use PHP application on Linux system ( x86_64 x86_64 x86_64 GNU/Linux) using JBoss AS (4.2.x or more).

      I peformed these steps:


      1. Downloaded end extracted JBoss native (jboss-native-2.0.9-linux2-x64-ssl.tar)
      2. Downloaded end extracted PHP module (php5servlet-linux-x86_64-1.0.3.tar)
      3. Copied JBoss native lib into <JBOSS_HOME>/bin/native
      4. Override jbossweb-extras.jar into <JBOSS_HOME>/server/<CONF>/deploy/jboss-web.deployer
      5. Modified server.ml into <JBOSS_HOME>/server/<CONF>/deploy/jboss-web.deployer
      6. Modified web.xml into <JBOSS_HOME>/server/<CONF>/deploy/jboss-web.deployer/conf
      7. Copied libphp5.so and libphp5servlet.so into bin/native
      8. Copied PHP lib into <JBOSS_HOME>
      9. Added LD_LIBRARY_PATH="$JBOSS_HOME/PHP/lib" export LD_LIBRARY_PATH    into bin/run.conf file
      10. Native libs are added as default into path when jboss starts


      When Jboss starts I got this error


      java.lang.UnsatisfiedLinkError: /opt/jboss-4.2.3.GA/bin/native/libphp5servlet.so: /opt/jboss-4.2.3.GA/PHP/lib/libpq.so.4: file too short, no libphp5servlet i

      n java.library.path(/opt/jboss-4.2.3.GA/bin/native)


      Can anyone help me?


      Thanx luca