Assembly of Windows PHP

Source: Internet
Author: User
Installation of Windows PHP
1. Windows PHP
1.1. Install PHP
(1) Download PHP free version php 5.2.9 zip package with address http://cn2.php.net/downloads.php
(2) Unzip the file, in the extracted directory, there are two files, respectively, "Php.ini-dist" and "php.ini-recommended",
Php.ini-dist is suitable for development use;
Php.ini-recommended has a high security settings, suitable for on-line when the product use;
Select one according to the situation, copy and rename to PHP.ini, and place any.
1.2. Modify the Apache httpd.conf configuration file to add the following:
LoadModule php5_module [PHP decompression path]/php5apache2_2.dllphpinidir [php.ini directory]addtype application/x-httpd-php. php

1.3. Add MySQL support:
(1) The Extension=php_mysql.dll of the php.ini file is removed from the comments in this line;
(2) php.ini file Extension_dir This line is modified to: Extension_dir = "[PHP Installation path]/ext";
(3) Copy the Libmysql.dll file to the C:/windows directory;
1.4. Add Xdebug Support:
(1) Download Xdebug DLL file (example: Php_xdebug-2.0.4-5.2.8.dll), and put it in the "[PHP Installation path]/ext" directory;
(2) Modify the php.ini file, add the following at the end of the file:
[Xdebug]zend_extension_ts = "[PHP Installation path]/ext/php_xdebug-2.0.4-5.2.8.dll" xdebug.remote_enable=1xdebug.remote_host= 127.0.0.1xdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.profiler_enable=1xdebug.profiler_output_dir= " [PHP Installation path]/xdebug]
  • 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.