Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How do i host a PHP site with JBoss (on Linux)

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do i host a PHP site with JBoss 4.0.2 (on Linux, which is already hosting a JSP/Servlet site ) ?

Google hits just give refs to old out of date stuff, or talk about Portals etc.


Any help will be much appreciated.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

The first hit I get when searching for "php jboss" is http://en.wikibooks.org/wiki/PHP_with_JBoss which seems pretty up-to-date. Granted, it talks about Windows, but I see nothing in there that wouldn't equally apply to Linux.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The other possibility is to use Quercus. I have been happily using it for months now.

There is also this discussion: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4146675
 
Dave Jarvis
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ulf, i saw that one.

for example, these lines to uncomment don't exist:

Find and uncomment this line:
<Listener className="org.apache.catalina.servlets.php.LifecycleListener"/>
in the file: C:\jbossweb-1.0.1.GA\server\default\deploy\jbossweb.sar\server.xml

and this file does not exist:

jbossweb.sar
 
Dave Jarvis
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter, Quercus sounds good enough for me to try. So basically it's a Quercus .war that i drop into the JBOSS deloy folder and then i just need to
do some config files ? Any other tips or gotchas i should be aware of please ?
 
Dave Jarvis
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter, i'm also trying the non-Quercus way:

1) Download and install JBoss Native for your OS: http://www.jboss.org/jbossweb/downloads/jboss-native/?action=a&windowstate=maximized
2) Download and install the PHP servlet for your OS: http://www.jboss.org/jbossweb/downloads/php/?action=a&windowstate=maximized

For (1): JBoss 4.0.2 (the version we use) doesn't have a folder called 'native' under 'bin' ?

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have never tried the PHP servlet with JBoss AS 4.0.x, only with 4.2.x and higher. The 4.2.x and later run.bat files look for the 'native' (or other) directories in the bin directory and if they see them add them to the PATH variable. (In some cases, this is done incorrectly, and at some point they changed the name of the subdirectory within the bin directory, making it all a bit of a mess.) You could look at how it is done in AS 4.2.3 and try mimicing it in the 4.0.2 run.bat.

Also, I have only tried Quercus with AS 4.2.3 and 5.1.0.
reply
    Bookmark Topic Watch Topic
  • New Topic