User Guide > Tasks > Working with Plugins > Creating a New PHP Project with Remote Server Support with a Zend Server Amazon EC2 Instance

Creating a New PHP Project with Remote Server Support with a Zend Server Amazon EC2 Instance

This procedure describes how to create a new PHP project with Remote Server Support, when an Amazon EC2 Instance is your remote server. A PHP remote project allows you to develop your project locally but debug it remotely on your Zend Server Amazon EC2 Instance.

Before creating a new PHP project with Remote Server Support with a Zend Server Amazon EC2 Instance as your remote server, you must add an Amazon EC2 Remote Connection Profile and enable tunneling for your Zend Server Amazon EC2 Instance.

 

 

Instructions on how to complete a procedure

To create a new PHP project with Remote Server Support with a Zend Server Amazon EC2 Instance:

  1. Go to File | New | Other | PHP | PHP Project from Remote Server
    - Or - In the PHP Explorer view, right-click and select New | Other | PHP | PHP Project from Remote Server.
    The New PHP Project with Remote Server Support dialog opens.

  1. Enter the following information:

  • Project name - The required project name.

  • Contents - Select whether to:

    • Create a new project in the workspace - Creates a new PHP project in the workspace directory.
      By default a workspace will have been created in @user.home/Zend/workspaces/DefaultWorkspace8 when you first launched Zend Studio.

    •  Create a project from existing source - Creates a PHP project pointing to files situated outside of the workspace. Click Browse to select the required source content.

  • PHP Version - Select whether to:

    • Use default PHP settings - Uses the default PHP Interpreter settings. For more information on PHP Interpreter and PHP version compatibility see Execution Environments Preferences.

    • Use project specific settings - Select the PHP version to be used for the project. See PHP Version Support for more information.

  • Project Layout - Select whether to:

    • Use project as source folder - All resources within the project will be added to the Build Path by default.

    • Create separate folders for source files and public resources - Separate folders will be created in which you can place resources which should be included or excluded from the Build Path. See Configuring a Project's PHP Build Path for more information.
      The default setting for this option can be configured from the New Project Layout Preferences page.

  • JavaScript Support - Mark the 'Enable JavaScript support for this project' check-box for JavaScript functionality (e.g. JavaScript Content Assist options) to be available to the project. See Enabling JavaScript Support in PHP Projects in PHP Projects for more information.

  1. Click Next.
    The Remote Configuration dialog opens.

  1. Select your Amazon EC2 Remote Connection Profile.
    If you do not have an existing Amazon EC2 Remote Connection Profile you can configure one by clicking Manage. For more information see Adding an Amazon EC2 Remote Connection Profile.
    The Project Directory is configured automatically based on your project name.

  2. Make sure the Project URL is correct and click Next.
    The Data Download Selection dialog opens.

  1. Expand the Project Directory to see all the folders within it that will also be transferred.

  2. Select the folders you want to download from the remote server by selecting the check-box next to the folder name.

  3. Click on a selected folder to view the files included in the folder.
    The individual files can also be selected/unselected to download from the remote server. By default, all files within a folder are selected.
    On this page you can also:

  • Filter Types - Opens the Inclusion and Exclusion Patterns dialog. For more information see Working with Inclusion and Exclusion Patterns.

  • Select All - Selects all the folders and files.

  • Deselect All - Deselects all the folders and files.

  1. Click Finish.
    The selected files are downloaded and the new PHP Remote Project with Remote Server Support is created.

You can now debug your project as a PHP web page on your Amazon EC2 Instance.

The new PHP project will be created in your workspace and displayed in the PHP Explorer View.

You can now start to develop your application by creating PHP Files or adding other resources to your project.

 

 

Related Links

Related Links:
Setting Up Your Zend Server Amazon EC2 Instance

Working with Amazon AWS Toolkit for Zend Studio

Amazon AWS Toolkit for Zend Studio

 

 

©1999-2013 Zend Technologies LTD. All rights reserved.