Run FastCGI enabled PHP.
$ php -b <hostname>:<port> & |
For example:
$ php -b localhost:4321 & |
You can check whether or not the PHP you are using is FastCGI-enabled by running the command:
$ php -v |
PHP 5.2.5 (cgi-fcgi) (built: May 8 2008 12:50:19) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies |
In the output, look for cgi-fcgi to confirm.
Configure the Sun Java System Web Server using CLI.
For example, a Web Server instance named test is created.
Using the CLI, execute the following command:
wadm> create-fastcgi-handler --config=test --vs=test --uri-pattern=/php/* --role=responder --bind-path="localhost:4321" wadm> deploy-config test |
A FastCGI handler with the role as Responder is created.
Restart your instance.
wadm> restart-instance --config=test localhost |
After completing the configuration, you can check if the requests from Web Server are being forwarded to the remote PHP engine.