Build a PHP development environment (XAMPP + xdebug+zend Studio)

Source: Internet
Author: User
Tags php debug php debugger php development environment zend zend framework

1. Installing XAMPP and Zend Studio

Zend studio:http://pan.baidu.com/s/1o6bjvae

Xampp:http://pan.baidu.com/s/1ntkncex

Normal installation can be done.

2. Configure Xdebug

Under XAMPP's installation directory, look for the PHP folder and edit the Php/php.ini file. Find [XDebug] and edit the contents as follows:

= "D:\xampp\php\ext\php_xdebug.dll"xdebug. remote_enable = 1xdebug. Remote_handler = "DBGP"  Xdebug. Remote_host = "127.0.0.1"xdebug. Remote_port = 9000

Restart Apache at this time (can be restarted in the XAMPP console). Then enter http://localhost/on the browser will enter the XAMPP Welcome page, in the left and right menu click Phpinfo Link, can search "Xdebug" word even if the configuration is successful . As follows:

Makes use of the Zend Scripting languageengine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans

3. Create a project in Zend Studio
    1. 3.1 New Project
    2. Open the "File->new-and Local PHP Project" menu in Zend Studio to create a PHP project. The path of the project can be placed casually, for example I put in the D:\Zend\workspaces\DefaultWorkspace10 directory (will be configured in Apache in the directory), note that the content select Basic, Do not choose Zendframework (Zend Framework is a web framework in the PHP world, we do not use it now).
    3. Then, configure Lanch Settings, because we are b/s program, so Choose "Lauchurl", if you are C/S client script, you choose "Launch CLI Application". Note: Enter/at base path. Then press the default, slightly.
3.2 Configuring Apache for XAMPP

Configuring the D:\Zend\workspaces\DefaultWorkspace10 Directory

    1. Edit D:\java\xampp\apache\conf\httpd.conf Replace the following two ' D:/java/xampp/htdocs ' with "D:\Zend\workspaces\DefaultWorkspace10"

These two places are:

    • DocumentRoot "D:\Zend\workspaces\DefaultWorkspace10"
    • #DocumentRoot "D:/java/xampp/htdocs"
    • <directory "D:\Zend\workspaces\DefaultWorkspace10" >
    • #<directory "D:/java/xampp/htdocs" >
    1. Verify and restart Apache.

3.3 Configuring Zend Studio to use Xdebug

Configuration is required for Zend Studio to debug using Xdebug instead of the default Zend Debugger, which is configured globally in the PHP Debug menu, Window-->preferences.

PHP Debugger in a web to choose Xdebug.

Build a PHP development environment (XAMPP + xdebug+zend Studio)

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.