-
1. Re: I want to host my php apps
peterj Jul 24, 2006 11:31 PM (in response to cyril3sl)The following steps worked for me on Windows XP. I don't know if these steps are the correct way to install PHP support in JBoss Web.
1) Download and unzip JBoss Web. I will call this directory WEB_HOME.
2) Download and unzip the PHP module from http://labs.jboss.com/portal/jbossweb/downloads/native. I will call this directory PHP_HOME.
3) Make sure you do not have a stray php.ini file lying around. I had one in my c:\windows directory; it referenced my PHP 5 installation directory, and caused the JVM to crash in php5ts.dll. I removed the c:\windows\php.ini file.
4) Edit the WEB_HOME/server/default/deploy/jbossweb.sar/server.xml and WEB_HOME/server/default/deploy/jbossweb.sar/conf/web.xml files as suggested by the section labelled "Installing" on http://labs.jboss.com/file-access/default/members/jbossweb/freezone/modules/php/index.html. These already contain the suggested changes, you just have to uncomment the changes.
5) Edit the run.bat file as given in the following code. The first and third lines are unchanged and supplied for context. The second line was modified (the java.library.path property was added), and the last line was added. Also, either set PHP_HOME or replace with the directgory where the PHP module was installed.rem Setup JBoss specific properties set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -Djava.library.path=%PHP_HOME%\PHP\bin;%PHP_HOME%\PHP\bin\ext set JBOSS_HOME=%DIRNAME%\.. set PATH=%PATH%;%PHP_HOME%\PHP\bin;%PHP_HOME%\PHP\bin\ext
Hmm. The preview shows 5 lines above. If you see 5 lines, the third line should actually be at the end of the second line. So there is one "rem" line, the other three are "set" lines.
6) Copy the PHP_HOME/webapps/php-examples.war directory to WEB_HOME/server/default/deploy.
7) Run PHP_HOME/bin/run.bat
8) Point your browser at http://localhost:8080/php-examples and you should see the examples menu page.
I hope I didn't forget a step... -
2. Re: I want to host my php apps
peterj Jul 25, 2006 10:19 AM (in response to cyril3sl)I knew I would forget a step.
4a) Either do not change the WEB_HOME/server/default/deploy/jbossweb.sar/conf/web.xml (as indicated in step 4) or remove the servlet and servlet-mapping tags from PHP_HOME/webapps/php-examples.war/WEB-INF/web.xml. If the php and phps servlet tags and their mappings appear in both web.xml files, you will get an error on duplicate servlet names. -
3. Re: I want to host my php apps
devnprasad_chaco Aug 7, 2006 9:30 AM (in response to cyril3sl)where to find jar for org.apache.catalina.servlets.php.Handler and org.apache.catalina.servlets.php.Highlight
-
4. Re: I want to host my php apps
devnprasad_chaco Aug 7, 2006 9:31 AM (in response to cyril3sl)where to find jar for org.apache.catalina.servlets.php.Highlight
-
5. Re: I want to host my php apps in JBOSS
m_parida Sep 22, 2006 2:25 PM (in response to cyril3sl)I tried to follow the steps mentioned in
http://labs.jboss.org/file-access/default/members/jbossweb/freezone/modules/php/index.html
But while I run the run.bat file I am getting the following error:
============================================
ERROR [org.apache.commons.digester.Digester] Begin event threw exception
java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.catalina.servlets.php.LifecycleListener
============================================
After searching I found that it's looking for servlets-php.jar file, which I don't have.
Can anyone help me to solve this issue ?
we need servlets-php.jar file.
--
Manas -
6. Re: I want to host my php apps
metitus Oct 16, 2006 10:08 AM (in response to cyril3sl)I better switch to apache, because this thing doesn't support a sth****. So many configurations, and after all everything fails to start.
-
7. Re: I want to host my php apps
metitus Oct 16, 2006 10:44 AM (in response to cyril3sl)Check this wonderfull documentation to windows machines.
http://labs.jboss.com/file-access/default/members/jbossweb/freezone/modules/php/index.html
Copy the demo webapps/php-examples.war to ./server/default/deploy.
Edit server/default/deploy/jbossweb.sar/server.xml as in other OS.
Copy the dlls in bin/native -
8. Re: I want to host my php apps
fievet.p Jan 10, 2007 4:15 PM (in response to cyril3sl)"MeTitus" wrote:
Check this wonderfull documentation to windows machines.
http://labs.jboss.com/file-access/default/members/jbossweb/freezone/modules/php/index.html
Copy the demo webapps/php-examples.war to ./server/default/deploy.
Edit server/default/deploy/jbossweb.sar/server.xml as in other OS.
Copy the dlls in bin/native
All worked fine for me under Windows XP SP2 ...
but when I change a value in the php.ini wich is in%JBOSS_HOME%\bin\native
(as mentionned in the doc)... none of the changes are reflected in<? phpinfo(); ?>
!
Can someone answer ? How to setup JBOSSWeb to load my php.ini ?
__________________________________
philippe fievet -
9. Re: I want to host my php apps
fievet.p Jan 11, 2007 8:15 AM (in response to cyril3sl)See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=98919
______________________________________________________
Philippe Fievet htttp://www.fievet.biz -
10. Re: I want to host my php apps
fievet.p Jan 11, 2007 8:22 AM (in response to cyril3sl)See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=98919
______________________________________________________
Philippe Fievet http://www.fievet.biz -
11. Re: I want to host my php apps
fievet.p Jan 15, 2007 6:45 PM (in response to cyril3sl)Hello All,
It's on line !
Real cookbook to get JBossWeb Running PHP 5.1.6 with extensions on all contexts under the MS Windows OS !
I just published the page here : http://www.fievet.biz/jbossweb-install/
___________________________________________
Philippe Fievet