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

ravindrashinde11 do-not-reply at jboss.com
Fri Jun 12 10:02:38 EDT 2009


Hi Peter. 

I done a setup for JBOSS4.2.2 .While running Dependency walker some dlls were missing I added them. But still in Dependency walker log window error is Error:   "The Side-by-Side configuration information for "d:\iwatch\php5servlet-windows-sp1-i586\php\bin\PHP5SERVLET.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001)."

I followed below steps. Is anything missing.

Steps for PHP integration with JBOSS
1)	   Downloaded and unzip JBoss Appplication server 4.2.2 at location D:\iWatch\jboss-4.2.2
2)	Download and unzip the PHP module from http://labs.jboss.com/portal/jbossweb/downloads . Call this directory as D:\iWatch\php5servlet-windows-SP1-i586\PHP
3)	Downloaded and installed  JBoss Native jboss-native-2.0.1-windows-i686-ssl: http://www.jboss.org/jbossweb/downloads/jboss-native/?action=a&windowstate=maximized
4)	 Copy JBoss Native into JBossHome directory, confirm whether you have D:\iWatch\jboss-4.2.2.GA\bin\native directory.
5)	Make sure you do not have a stray php.ini file lying around. 
6)	moved the php.ini to the windows directory
7)	Set the php5servlet\bin & php5servlet\bin\ext in PATH variable.
8)	 Download php5servlet.dll from 
http://members.cox.net/ocjohnsons/php5servlet.zip 
Replace it with php5servlet\bin
8)    Copy php5servlet\webapps\php-examples.war into JBOSS_HOME\server\default\deploy. 
9) added a Listener to the server.xml in server\default\deploy\jboss-web.deployer

10) JBOSS_HOME/server/default/deploy/jbossweb.sar/conf/web.xml 
Edit this as

        <servlet-name>php</servlet-name>
        <servlet-class>org.jboss.web.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-name>phps</servlet-name>
        <servlet-class>org.jboss.web.php.Highlight</servlet-class>
    

 <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>
11) Download jbossweb-extras.jar for php http://anonsvn.jboss.org/repos/jbossreflex/trunk/php/jbossweb-extras.jar 

Copy to JBOSS_HOME\server\default\lib 

11. Environment variables setup done.





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

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



More information about the jboss-user mailing list