Native PHP in Glassfish with jsr223

Previously, Ludo and Arun described how to run PHP 5 on GlassFish using Quercus, see here and here. However, it is also possible to invoke the native PHP engine on Glassfish, using jsr223 and a PHP bridge. The following steps should work on Sparc Solaris 10.
  1. Download script.jar and drop it into <glassfish>/lib.
  2. Download libphp5-5.0.1-sparc-S2.so, save it as libphp5.so and drop it into <glassfish>/lib.
  3. Download phptest.war and deploy in Glassfish.
  4. 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.

Comments:

Post a Comment:
Comments are closed for this entry.
About

kchung

Search

Top Tags
Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks