+

Search Tips   |   Advanced Search

Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

 

Deploying PHP applications


You can use the various qualities of service of WebSphere® Virtual Enterprise product to manage PHP-based applications in addition to Java Platform, Enterprise Edition 5 (Java EE 5) applications.

 

Before you begin

 

About this task

You can experience the same qualities of service that WebSphere XD provides for Java EE 5 applications for PHP applications.

 

Procedure

  1. Navigate to the PHP application wizard. In the administrative console, click Applications > Install new middleware application. Choose the PHP application type, and click Next.

  2. Specify the location of the application archive, setup, and clean-up scripts.

  3. Specify installation options, including the application name, edition, and edition description. The application name must be unique among all of the applications that are deployed in the cell, including applications that are other types, such as Java EE 5 or unmanaged Web applications.

  4. Define the deployment properties of the application.

    1. Specify the context root and virtual host information for the application.

    2. Choose the servers and clusters on which the application runs by selecting deployment targets. Choose PHP servers or PHP dynamic clusters. You can filter the list of deployment targets by only clusters, only servers, or by entering a name. Click Add or Remove to specify which servers and clusters run the application.

    3. For an unmanaged Web application with multiple modules, click Apply to add the module and deployment targets to the module list.

  5. Confirm the new PHP application, and save the changes. The application archive expands and the setup script runs.

  6. Start the application. With middleware applications, applications start when you start the PHP server in the administrative console. Click Servers > Other middleware servers > PHP servers. Select the servers that you chose as deployment targets, and click Start. You can also start the application from Applications > All applications in the administrative console. However, doing so from this panel will start all the servers associated with this application. The same rule applies if you stop PHP applications from this panel.

 

Results

Your PHP application runs on the defined PHP deployment targets. If you deployed the application to a PHP dynamic cluster, then the dynamic cluster can add or remove PHP servers as needed.

 

What to do next

Define service policies and routing policies for the application. All application edition manager functions are available. When you roll out a new edition, the clean-up script from the first edition runs, the application archive of the new edition is expanded, and the setup script of the new edition runs. Restriction: Only one active edition of a PHP application is supported on a node. If you have multiple active editions of the same PHP application, ensure that the editions are not deployed to servers that are on the same node.



Related tasks

Deploying applications with defined service levels
Defining a service policy
Deploying and managing application editions without loss of service
Creating PHP servers and PHP dynamic clusters

 

Related reference


Middleware application administrative tasks

Related information


Middleware server creation administrative tasks