Download the Quercus PHP interpreter from http://quercus.caucho.com/.
Deploy the downloaded WAR file to the GlassFish Server.
To verify that your PHP engine is working, enter the following URL in your browser:
This is the default PHP script that is available in the Quercus interpreter.
Move your PHP application to a subdirectory of the Quercus directory.
The Quercus application directory is located at domain-dir/applications/quercus-4.0.1/. For example:
To verify your PHP application is working, access your application from a browser.
For example, enter the following URL in your browser:
For more PHP information, documentation, and examples, see the Quercus PHP interpreter.