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.
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
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 ?
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.