Joe McCabe has written an excellent
article about using
PHP on
Sun Java System Web Server. The PHP engine can run with Web Server 6.1 as a CGI program, as a FastCGI server, or as a plugin using the Web Server's NSAPI and
this article covers all this in great details.