Deploying Applications to Zend Server

Zend Studio allows you to create a new PHP project from an existing SVN project. In this tutorial you will be provided with an existing SVN project.

In this Tutorial you will Learn

Prerequisites

Step 1: Creating an API Key

This procedure describes how to add an API key, which you will need to be able to use Zend Server's API.

 

 

 

Instructions on how to complete a procedure

 To add an API key:

  1. In Zend Server, go to Administration | API Keys.

  2. Go to the Add API Key area, enter a name for your API key and select a full access level from the Access Level dropdown list.

  1. Click Add.
    Your API key now appears in the list of API keys.

Creating_new_API_key.png

 

For information on deleting an API key see Deleting an API Key.

 

Step 2: Creating a New Project from SVN

Creating a new project from SVN in Zend Studio allows you to import an existing SVN project into your IDE.

For this tutorial you will use a provided SVN project.  

 

 

Instructions on how to complete a procedure

To create a new project from SVN:

  1. Open Zend Studio.

  2. From the Menu bar, select New | PHP Project from SVN.
    If the SVN plugin is not installed, Zend Studio will automatically begin the process for installing the plugin that will include restarting the program. Wait until this installation is complete before continuing. See Customizing and Registering Zend Studio for more information.

svn_details.png

  1. Enter the following information:

  • Project Name- Name your project “NewProject”

  • Location- The project location for this tutorial is ‘C:\Program Files(x86)\Zend\Apache2\htdocs’

  • URL- Enter the following URL:  http://svn.code.sf.net/p/php-memory/code/php-memory/trunk/

  • User Name- In this tutorial, leave this field empty.

  • Password- In this tutorial, leave this field empty.

  1. Click Next to move to the Launch Settings dialog.

launch_settings.png

  1. Select Launch with Zend Application Deployment and click the Zend Server icon Zend_Server_icon.png
    The Target Details dialog is displayed.

Add_Server_Target.png

  1. Enter the server Host Name (address), Key Name and Key Secret and click Test Connection.

  2. If no problems arise, click Finish.
    The Launch Settings dialog is displayed again with the new target defined.

New_Target_Defined.png

  1. Click Finish.
    Your application is created and displayed in the main view and PHP Explorer. By default, the deployment.xml file is opened and displayed.

svn_project_created.png
 

 

Step 3: Launching your Application

The final stage of this tutorial will explain how to finalize the testing stages for your application by launching it in Zend Studio's internal browser.

 

 

Instructions on how to complete a procedure

To launch your application:

  1. In the deployment.xml file's overview tab, click Browse next to the Document Root field, and define the root as data | src | pub.

Document_Root.png

  1. In the Testing Area, click Launch a PHP Application.
    Your application will appear in the internal Web browser.

application_deployed.png

 

 

 

 

 

Related Links

Related Links:

Building Applications on the Zend Developer Cloud

Customizing and Registering Zend Studio

Running Applications on Local Zend Servers