By kchung on Feb 15, 2008
- Download script.jar and drop it into <glassfish>/lib.
- Download libphp5-5.0.1-sparc-S2.so, save it as libphp5.so and drop it into <glassfish>/lib.
- Download phptest.war and deploy in Glassfish.
- Run the php.
Of course you can run your php program similarly, just be sure to copy the php servlet mapping into your web.xml.
I built these two files from a Sun internal repository for Jsr223, there may be binaries available publicly, but I can't seem to find them.
Note that version that libphp5.so is 5.0.1, and I have only built it on the Sparc Solaris 10.
It'll be interesting to compare the performance for running PHP on Glassfish, using Quercus and using native PHP. It would also be interesting to compare the performance of Glassfish+PHP with Apache+PHP.