The original local environment can be used here, it is recommended to use a single software model for learning, but also more conducive to training software compatibility problem solving ability.
- Apache Httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
- PHP Php-5.3.10-win32-vc9-x86.zip
- MySQL Mysql-5.5.20-win32.msi
Can be referenced under Windows to build a PHP development environment
I compare this time to facilitate the rapid construction, using the integration package XAMPP5.6, directly including the above software, Windows7 operating system, a comparison of the main changes in the place there are a few:
Apache section
1. Lets you parse PHP files AddType application/x-httpd-php. php. html. htm
2. Change directoryindex in configuration file,documentroot,<directory> three options, DirectoryIndex join index.php, DocumentRoot, <Directory> for the document root directory
PHP section
1. Set the specific directory for the PHP expansion pack
; On Windows:
Extension_dir = "d:/develop/php/ext"
2. Turn on the library function to locate the row of the library you want to open
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_xmlrpc.dll
3. Set time zone Date.timezone = Asia/shanghai
Test:
Start Apache, create a new file index.php in the Site directory, enter the content
<?php
Phpinfo ();
?>
Open the browser input http://localhost, display the following content, the installation was successful, and successfully associated with MySQL.
PHP Environment Setup