Deploying an Application on IBM Bluemix Using Zend Server

This topic describes how to deploy your PHP application on IBM Bluemix using Zend Server.

Prerequisites

Buildpack Components

  • Zend Server 8.0 Enterprise Edition

  • Zend Server 8.0 configuration files

  • PHP 5.6
  • Apache Web server

 

 

Instructions on how to complete a procedure

To deploy your application on IBM Bluemix using the Zend Server:

  1. Open your CLI.

  2. Create a new folder on your workstation, and access it.
  3. Create a new 'index.php' file in the root folder of your application, and paste the following code:

<?php

echo "Hello world!;

?>

  1. Alternatively, if you have an application package (.zpk) ready for deployment, place it anywhere in your application.
  2. Enter the following command:

cf push <application name> -m 512M -b https://github.com/zendtech/zend-server-php-buildpack-bluemix.git

Your application is deployed using the Zend Server buildpack. This may take a few minutes

  1. Once successfully initialized and deployed, a success message with the URL at which your application is available at is displayed.

  2. To access the application, enter the supplied URL in your Web browser. For a .zpk, enter:

http://<application URL>/<zpk name>

  1. To access Zend Server, add 'ZendServer' to the supplied URL. For example:

http://<application URL>/ZendServer

The Zend Server Login page is displayed.

  1. To access the Zend Server UI, enter the following credentials:
    • Username - admin
    • Password - enter the following command in your CLI to retrieve an initial password:

    cf file <application name> /app/zend-password

    Tip:

    To change the Zend Server UI password, or in case you misplace your password, enter the following commands:
    cf set-env <application name> ZS_ADMIN_PASSWORD <new password>
    cf restart <application name>

  2. To update your application in the future, use the 'cf push' command from within your application's source code directory.