Preparation of WindowsPHP integrated development debugging environment

Source: Internet
Author: User
WindowsPHP integrated development debugging environment build PHP integrated development debugging environment build: Environment Software Composition: Apache2.4, php5.3nt, ZendDebugger, mod_fcgid-2.3.7-win32, EclipsePHP. JDK1.5, mysql55? Mysql55 I used to build an integrated development and debugging environment for Windows PHP.

PHP integrated development debugging environment setup:

Environment Software Composition: Apache2.4, PHP5.3, ZendDebugger, mod_fcgid-2.3.7-win32, Eclipse PHP. JDK1.5, mysql55

?

Mysql55 has already been installed since I used the installation version myself. Let's just talk about how to configure Mysql in PHP.

?

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 NT; 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 the JDK1.5 environment. Currently, up to PHP5.3 code prompts are supported.

Zend Debugger also supports PHP5.3 debugging.

?

After Eclipse PHP is decompressed, you can use the environment variable JDK1.5.

In addition to JDK, it is free of installation. you can also create an integrated package, just as you did with XAMPP, and then run it everywhere.

?

Apache configuration, configuration file conf/httpd. conf:

1. ServerRoot must be configured to start Apache.

The ServerRoot "C: \ Apache24" directory directs to the directory where you extract apache

2. configure the website root directory and copy dummy. php in ZendDebugger to this directory:

DocumentRoot "C: \ php"

?

3. configure fastCgi in Apache:

A. decompress mod_fcgid-2.3.7-win32.zip and copy mod_fcgid.so to the Modules directory of Apache2.4.

B. add the following code under LoadModule in the Apache configuration file httpd. conf. In addition, C:/Apps/php5.3cnt is the PHP path for the author to decompress.

?

LoadModule fcgid_module modules/mod_fcgid.so

??? FcgidInitialEnv PHPRC ??????? "C:/Apps/php5.3cnt"
??? AddHandler fcgid-script. php ????
??? FCGIWrapper "C: \ Apps \ php5.3ets \ php-cgi.exe". php

Add the CGI execution code to DocumentRoot and replace FollowSymLinks with the blue code:

DocumentRoot "C: \ php"

??? #
??? # Possible values for the Options directive are "None", "All ",
??? # Or any combination:
??? #?? Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
??? #
??? # Note that "MultiViews" must be 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 is complete. now PHP is configured.

1. in the PHP decompress folder, change php. ini-development to php. ini.

2. open php. ini, find extension_dir, remove the semicolon, and change the value to C:/Apps/php5.3ets/ext.

3. remove the semicolon before extension = php_mysql.dll if you need to connect to Mysql.

4. under; report_zend_debug = 0, add the following code to configure 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"

?

Okay. now the PHP integrated development, debugging, and installation environment is complete. You can start development.

?

?

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.