Create a php Development Environment (XAMPP + Xdebug + ZendStudio)

Source: Internet
Author: User
Tags php debug php debugger php development environment
1. Install XAMPP and ZendStudioZendStudio: pan. baidu. coms1o6BjvAEXAMPP: pan. baidu. coms1ntkNcEX. 2. Configure Xdebug in the installation directory of XAMPP, find the php folder, and edit the phpphp. ini file. Find [XDebug] and edit the content

1. Install XAMPP and Zend Studio: http://pan.baidu.com/s/1o6BjvAE XAMPP: The http://pan.baidu.com/s/1ntkNcEX can be installed normally. 2. Configure Xdebug in the installation directory of XAMPP, find the php folder, and edit the php/php. ini file. Find [XDebug] and edit the content

1. Install XAMPP and Zend Studio

Zend Studio: http://pan.baidu.com/s/1o6BjvAE

Http://pan.baidu.com/s/1ntkNcEX: XAMPP

Normal installation.

2. Configure Xdebug

In the installation directory of XAMPP, find the php folder and edit the php/php. ini file. Find [XDebug] and edit the content as follows:

[XDebug]zend_extension = "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 (restart in the XAMPP console ). Enter http: // localhost/in the browser to go to The xampp welcome page. Click the phpinfo link in the left and right menus,If the word "Xdebug" is found, the configuration is successful.. As follows:

This program 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 create a project
  2. Open the "File-> New-> Local PHP Project" menu of Zend Studio to create a PHP Project. The path of the project can be freely stored,For example, I put it in the D: \ Zend \ workspaces \ defaworkworkspace10 directory (which will be configured in apache later ).). Note: Select Basic for Content instead of ZendFramework (Zend Framework is a web Framework in the php world and we don't need it now ).
  3. Next, configure the Lanch Settings. Because we are a B/S program, select "LauchURL". If you are a C/S client script, select "Launch CLI Application ". Note:Enter/at Base Path /. AfterBy default, omitted.
3.2 configure apache for XAMPP

Configure to point to the D: \ Zend \ workspaces \ defaworkworkspace10 directory

  1. Edit D: \ java \ xampp \ apache \ conf \ httpd. conf replaces the 'D:/java/xampp/htdocs' with 'D: \ Zend \ workspaces \ defaworkworkspace10"

These two punishments are:

  • DocumentRoot "D: \ Zend \ workspaces \ DefaultWorkspace10"
  • # DocumentRoot "D:/java/xampp/htdocs"
  • #
  1. Verify and restart apache.

3.3 configure Zend Studio to use XDebug

You need to configure Zend Studio to use Xdebug for debugging, instead of the default Zend Debugger. perform global configuration in the Window --> Preferences-> PHP Debug menu.

Select Xdebug for a Web in PHP Debugger.

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.