Using Quercus to run PHP on Sun Java System Web Server

Source: Internet
Author: User
Tags command line config ruby on rails

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.