Plot Build a development environment using Zend Studio 10 and XAMPP 1.8 under Windows, Zendframework 2 HelloWorld

Source: Internet
Author: User
Tags zend framework

1. Download and install

Zendstudio, search a cracked version

XAMPP, official website download: https://www.apachefriends.org/index.html

2. Open Zendstudio to create a new PHP project

Menu: "File", "New", "Project ..." opens the New Project dialog box and selects "PHP", "Local PHP project"

, select the "Zend Framework" and choose the version as needed, then click "Finish". (Point next also has some settings, do HelloWorld simple point to use the default is OK.) )

3. Add the PHP path in the XAMPP to the environment variable, for example XAMPP installed in C:\xampp, add C:\xampp\php to the environment variable path, and note the semicolon as a delimiter between the other paths.

Win7 Modify the environment variable method: "Computer" point right, select Properties, point "advanced System Settings", click "Advanced" tab, click "Environment variables ..." To open the following dialog box:

In the following column, locate path, double-click the line edit, and add "C:\xampp\php;" at the beginning. Can.

4. Update the project-dependent zendframework in the new directory.

Because Zendframework 2 uses composer to manage dependencies, the official documentation does not have a way to copy directly to the library in ZF1. First make sure the computer does not use the agent to network, and then open the cmd command line, the CD into the project path, enter the following two lines of command

PHP composer. Phar installphp composer. Phar Update

Wait for the command to complete before moving on to the next step.

5. Set the project's operating environment, there are two ways: one is to let Zendstudio automatically publish the site to the Apache server Htdocs directory, the other is to change the Apache DocumentRoot to the project directory. If not zendframework, the first method I good grasp, but after using zendframework but always fail, so here I used a second method.

The second method is relatively simple, with Notepad open C:\xampp\apache\conf\httpd.conf, press ctrl+h, "D:/xampp/htdocs" replaced "d:/study/zendworkspace/ Helloworld/public ", note the slash direction. where "D:/study/zendworkspace/helloworld" is the path to my new HelloWorld project

6. Launch Apache

Double-click the Xampp-control.exe in the XAMPP installation directory, point to the "Start" button after Apache, and wait for Apache to become a light green background to indicate that the boot is complete. Then enter localhost in the browser and hit enter to open the page Zendframework comes with. Complete.

If IIS is already started, there may be a case where port 80 is occupied, the simplest of which is to suspend IIS, or you can modify the listening port in the Apache configuration file.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.