Sun Java System Web Server can run on all major operating systems and support a variety of dynamic content technologies, such as the Java Servlet, JavaServer Pages, JavaServer Faces, Active Server Page S, PHP, ColdFusion, Netscape APIs, CGI, and Ruby on Rails to develop WEB applications. Its latest version of Sun Java System Web Server 7.0 Update 1 (hereinafter referred to as Web server) is now available for free download.
You can take advantage of Web containers in Web Server that are compatible with the Java EE 5 platform to build reliable, scalable Web applications for today's large enterprises. Using the Caucho Technology Quercus (an open source Java technology from PHP 5), you can also use WEB containers to develop highly scalable PHP applications.
This article describes how to configure Quercus as a Web application within a Web container in Web Server to run PHP based applications such as Drupal and MediaWiki.
Note: Although each command in this article should be one row, some commands may take up two rows due to the screen width.
To create a sample configuration
To validate this method, you need to create a configuration and instance named Quercus, and then deploy it on the Web Server. For a demonstration of the procedures involved in the WEB Server management console, see Ajay Acharya screen recording.
Tip: To avoid administration Server (WADM) prompting you to enter a password for each command, follow this procedure to save passwords and other related information.
To create the configuration and instance on the command line interface (CLI), do the following:
Note: The file Conventions in the following command are for Windows platforms.
Go to the Web Server installation directory, for example:
CD C:\Program Files\sun\webserver7
Start Administration Server. Type:
C:\Program files\sun\webserver7> Admin-server\bin\startserv.bat
Create a configuration and instance. The following is the command line and output.
C:\Program Files\Sun\WebServer7> bin\wadm.bat create-config --user=admin
--password-file=.password --http-port=8084 --server-name=sriramn quercus
CLI201 Command 'create-config' ran successfully
C:\Program Files\Sun\WebServer7> bin\wadm.bat create-instance
--user=admin--password-file=.password --config=quercus sriramn
CLI201 Command 'create-instance' ran successfully
Web server creates a directory named Https-quercus in the Web server installation directory.