2 Replies Latest reply on Jul 6, 2011 5:51 PM by Halfdome Dog

    Problems deploying JBoss after installation of PHP Module

    Halfdome Dog Newbie

      Hello,

      While I am not new to using JBossAS, I am new to configuring it. I had a working JBossAS installation on Windows 7 and I wanted to be able to run some PHP as well so I tried to follow the documentation that I found here:

      http://www.jboss.org/jbossweb/modules/php.html and http://docs.jboss.org/jbossweb/3.0.x/php.html

       

      The instructions weren't very clear to me so I will inform you of the steps that I took to install the module:

      1) Download the PHP Module win32 package php5servlet-windows-i586-SP1.zip from:http://www.jboss.org/jbossweb/modules/php.html

      2) Extract the contents of php5servlet-windows-i586-SP1.zip to the root of the JBoss installation

      3) Edit server.xml to add the line <Listener className="org.apache.catalina.servlets.php.LifecycleListener"/>

      4) Edit conf/web.xml to add:

      <servlet>
              <servlet-name>php</servlet-name>
              <servlet-class>org.apache.catalina.servlets.php.Handler</servlet-class>
              <init-param>
                <param-name>debug</param-name>
                <param-value>0</param-value>
              </init-param>
               <load-on-startup>6</load-on-startup>
          </servlet>
          <servlet>
              <servlet-name>phps</servlet-name>
              <servlet-class>org.apache.catalina.servlets.php.Highlight</servlet-class>
          </servlet>
      
      
          <servlet-mapping>
              <servlet-name>php</servlet-name>
              <url-pattern>*.php</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
              <servlet-name>phps</servlet-name>
              <url-pattern>*.phps</url-pattern>
          </servlet-mapping>
      

       

      5) In server.xml changed

      <Listener className="org.apache.catalina.servlets.php.LifecycleListener"/>
      

      to

       

       <Listener className="org.jboss.web.php.LifecycleListener"/>
      

       

      6) In conf/web.xml changed

       

       <servlet-class>org.apache.catalina.servlets.php.Handler</servlet-class>
      

      to

       

       <servlet-class>org.jboss.web.php.Handler</servlet-class>
      

      and

       

       <servlet-class>org.apache.catalina.servlets.php.Highlight</servlet-class>
      

      to

       

      <servlet-class>org.jboss.web.php.Highlight</servlet-class>
      

       

      7) I also downloaded and installed jbossweb-extras.jar for php in the lib folder of the server

       

      The instruction say that you need to add the following line to the bin/run.conf in order to use the php demo that was included with the module:

        LD_LIBRARY_PATH=$JBOSS_HOME/PHP/lib export LD_LIBRARY_PATH

      I replaced $JBOSS_HOME with the location of the server install.

       

      8) As a last step, the instructions say to start and restart the server.

       

      The problems come when I try to access the demo using http://localhost:8080/php-examples/index.php

      These are some of the error that jboss is giving:

      WARN  [ServiceController] Problem starting service jboss.web.deployment

      ERROR [MainDeployer] Could not start deployment:

       

       

      I am pulling out what little hair I have left and could really use your help.

       

      Thanks in advance,

      Halfdomedog