You are here: User Guide > Tasks > Creating New PHP Projects > Creating a New PHP Project from OpenShift

Creating a New Project from OpenShift

This topic will explain how to create a new PHP project in your workspace by:

For information on configuring the OpenShift Server URL, see Configuring OpenShift.

Prerequisites

These prerequisites are necessary for establishing a connection with the OpenShift application and creating a new target in Zend Studio. For more information on troubleshooting the process of creating a new OpenShift target in Zend Studio, see Possible Problems when Testing the Connection.

Importing an Existing OpenShift Project

This procedure describes how to create a new project in your workspace by importing an existing OpenShift application into Zend Studio.

 

 

Instructions on how to complete a procedure

To import an OpenShift project into your workspace:

  1. Go to File | New | Project.
    -OR-
    In the PHP Explorer View, right-click and select New | Project.
  2. From the Wizards list, select PHP | PHP Project from OpenShift.
    The Create Project from OpenShift wizard is displayed.

  1. In the Project Name field, name your new project.
  2. In the Location field, select a location for the new project.
  3. If you already have a defined OpenShift target, it will appear in the Container field. Skip to Step 10.
  4. If not, click Add Target to add a new OpenShift target.
    The Add Target dialog is displayed.

  1. Enter your OpenShift account credentials:
  • Username: Your OpenShift account username.

  • Password: Your OpenShift account password.

  • SSH Private Key: Your OpenShift SSH Keypair.

  1. Click Test Connection.
    Zend Studio validates the existing targets on your OpenShift account. If Zend Server has not been initialized for any of your Zend Server 5.6 cartridges, the OpenShift Target Initialization dialog is displayed.

  1. Enter a Zend Server password. The password is required to access the Zend Server user interface.

  2. Click Next.

    The Zend Server EULA is displayed.

  1. Read and accept the EULA, and click Finish.
    Zend Studio will initialize the Zend Server 5.6 cartridge in your OpenShift account.
  1. Back in the Target Details dialog, and if no further problems arise with connecting to the target, click Finish. For information on possible problems, and the steps to solve them, see Possible Problems when Testing the Connection.
    The Create Project from OpenShift wizard is displayed again, and the newly defined target will appear in the Container drop-down menu.
  1. Select Use existing application.

  1. In the Application field, click the drop-down menu, and select the application you wish to import. Click Refresh to refresh the applications list.
  1. Click Next.
    The Libraries dialog is displayed.

  1. Select the libraries you wish to add to the project, and click Finish.

Note:

If not already installed, selecting to install jQuery Library Support, ExtJS and Prototype will prompt a restart of Zend Studio.

The new project is created in your workspace and displayed in the PHP Explorer View

Creating a New OpenShift Project

This procedure describes how to create a new OpenShift project in your workspace.

 

 

Instructions on how to complete a procedure

To create a new OpenShift project:

  1. Go to File | New | Project.
    -OR-
    In the PHP Explorer View, right-click and select New | Project.
    The New Project - Select a wizard dialog is displayed.
  2. From the Wizards list, select PHP | PHP Project from OpenShift.
    The Create Project from OpenShift wizard is displayed.

  1. In the Project Name field, name your new project.
  2. In the Location field, select a location for the new project.
  3. If you already have a defined OpenShift target, it will appear in the Container field. Skip to Step 10.
  4. If not, click Add Target to add a new OpenShift target.

    The Add Target dialog is displayed.

  1. Enter your OpenShift account credentials:
  • Username: Your OpenShift account username.

  • Password: Your OpenShift account password.

  • SSH Private Key: Your OpenShift SSH Keypair.

  1. Click Test Connection.

    Zend Studio validates the existing targets on your OpenShift account. If Zend Server has not been initialized for any of your Zend Server 5.6 cartridges, the OpenShift Target Initialization dialog is displayed.

  1. Enter a Zend Server password. The password is required to access the Zend Server user interface.

  2. Click Next.

    The Zend Server EULA is displayed.

  1. Read and accept the EULA, and click Finish.

    Zend Studio will initialize the Zend Server 5.6 cartridge in your OpenShift account.
  1. Back in the Target Details dialog, and if no further problems arise with connecting to the target, click Finish. For information on possible problems, and the steps to solve them, see Possible Problems when Testing the Connection.
    The Create Project from OpenShift wizard is displayed again, and the newly defined target will appear in the Container drop-down menu.

  1. Select Create New Application.
  2. Select the content of your project: Basic, Zend Framework.
  3. Select the version corresponding to the content type you selected in the Content field.
  1. Click Next.
    The Libraries dialog is displayed.

  1. Select the libraries you wish to add to the project, and click Finish.

Note:

If not already installed, selecting to install jQuery Library Support, ExtJS and Prototype will prompt a restart of Zend Studio.

The new project is created in your workspace and displayed in the PHP Explorer View

Configuring OpenShift

This procedure describes how to set the OpenShift server URL and production domain.

 

 

Instructions on how to complete a procedure

To configure the OpenShift Server URL:

  1. In the Menu bar, go to Window | Preferences | OpenShift.

  1. Enter an OpenShift server URL. Default URL: https://openshift.redhat.com.
  2. Enter the public production environment domain. Default domain: rhcloud.com.
  3. Click Apply to apply the changes.
  4. Click OK to close the Preferences dialog.

 

 

 

Related Links

Related Links:

Creating an OpenShift Target

OpenShift Integration

 

 

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