Windows PHP Integrated Development Debugging environment preparation

Source: Internet
Author: User
Windows PHP Integrated Development Debugging Environment Setup

PHP Integrated development Debugging environment to build:

The software of the environment is composed of: Apache2.4, PHP5.3 NTS, Zenddebugger,mod_fcgid-2.3.7-win32,eclipse PHP. Jdk1.5,mysql55

?

MYSQL55 because I used the installation version of the previous installation has been installed. Just say how PHP configures MySQL.

?

Apache2.4:http://www.apachelounge.com/download/win32/binaries/httpd-2.4.4-win32.zip

Mod_fcgid:http://www.apachelounge.com/download/win32/modules-2.4/mod_fcgid-2.3.7-win32.zip

PHP5.3 NTS; Http://windows.php.net/downloads/releases/php-5.3.26-nts-Win32-VC9-x86.zip

Zend Debugger:http://downloads.zend.com/studio_debugger/2011_04_10/zenddebugger-20110410-cygwin_nt-i386.zip

Eclipse Php:http://archive.eclipse.org/technology/epp/downloads/release/helios/sr1/eclipse-php-helios-sr1-win32.zip

?

Eclipse PHP can only run in an JDK1.5 environment. Currently the highest supported code hints to PHP5.3.

Zend Debugger is also the highest support for PHP5.3 debugging.

?

After Eclipse PHP is unpacked, configuring the JDK1.5 environment variable is available.

In addition to JDK1.5 are free to install, you can also make an integrated package as xampp as the decompression can be run everywhere.

?

Apache configuration, configuration file conf/httpd.conf:

1, start Apache must be configured ServerRoot

ServerRoot "C:\Apache24" This directory will point to the directory where you unzipped Apache

2, configure the site root directory, and the Zenddebugger inside the dummy.php copy to here:

DocumentRoot "C:\php"
C:\php ">

?

3,apache Configuration fastcgi:

A, unzip the mod_fcgid-2.3.7-win32.zip, and copy the mod_fcgid.so to the Apache2.4 modules directory.

B, add the following code to the Apache configuration file httpd.conf loadmodule below. Another c:/apps/php5.3nts for the author to extract the Path of PHP.

?

LoadModule Fcgid_module modules/mod_fcgid.so

??? Fcgidinitialenv PHPRC??????? "C:/apps/php5.3nts"
??? AddHandler fcgid-script. PHP????
??? Fcgiwrapper "C:\Apps\PHP5.3NTS\php-cgi.exe". php

Add the CGI execution code to documentroot and replace the followsymlinks with a blue code:

DocumentRoot "C:\php"

??? #
??? # Possible values for the Options directive is "None", "all",
??? # or any combination of:
??? #?? Indexes includes followsymlinks symlinksifownermatch execcgi multiviews
??? #
??? # Note that "MultiViews" must is named *explicitly*---"Options all"
??? # doesn ' t give it to you.
??? #
??? # The Options directive is both complicated and important.? Please see
??? # http://httpd.apache.org/docs/2.4/mod/core.html#options
??? # for more information.
??? #
??? Options Indexes execcgi multiviews

?

Apache configuration complete, now configure PHP.

1, to the PHP decompression folder, the Php.ini-development modified into php.ini

2, Open php.ini, locate Extension_dir, remove the preceding semicolon, and modify its value to: c:/apps/php5.3nts/ext

3, if you need to connect MySQL is removed; extension=php_mysql.dll the front semicolon.

4, to; report_zend_debug = 0 under Add the following code to configure the Zend_debugger:

zend_debugger.allow_hosts = 127.0.0.1 localhost
zend_debugger.expose_remotely = 2
Zend_extension = "C:\ZendDebugger-20110410-cygwin_nt-i386\5_3_x_nts_comp\ZendDebugger.dll"

?

OK, now the PHP Integration Development Debugging installation environment is complete. You can start developing it.

?

?

  • 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.