Winodws install PHP development environment installation environment: Windows764-bit target PHP runtime environment: PHP5.4 and Apache2.41, open PHPwindows official website: http://windows.php.net/download/#p Winodws install PHP development environment
Installation environment: Windows 7 64-bit
Target PHP runtime environment: PHP5.4 and Apache2.4
1, open PHP windows official website: http://windows.php.net/download/#php-5.5
2. select Apache as the server and use PHP5.4 for thread security.
VC9 x86 Thread Safe (22:49:25)
Because VC9 and 10 are installed on my machine and 11 is not installed, 5.5 is not selected. php5.5 you need to install VC10. you can go to add and delete programs to view the Microsoft Visual C ++ 20xx Redistributable version you have installed. If you have installed PHP5.5. or you can manually download and install PHP5.5.
?
Download and configure Apache2.4
3. because we chose PHP5.4, we cannot use apache on the official website of Apache.org, which only supports VC ++ 9 and does not support VC ++ 11. In addition, confirm the installation on your machineVisual C ++ Redistributable for Visual Studio 2012? X86 or x64?
So let's go to http://www.apachelounge.com/download/now 32bit: 62bit. I use the 64-bit win7 system, but I use 32-bit. 32-bit compatible with 64-bit operating systems.
4, are free of installation version. Directly decompress the package.
5. configure the ServerRoot and DocumentRoot addresses before starting Apache2. Otherwise, it cannot be started.
Configure ServerRoot to the decompress directory of your Apache. Configure your website address as DocumentRoot, or copy the Apahce directory/htdocs/index.html file to the configured address.
6. open localhost and you will see It Works.
?
Configure PHP and Apache
See http://us1.php.net/manual/zh/install.windows.apache2.php
And http://www.cnblogs.com/pharen/archive/2012/02/06/2340628.html
?
1. parse PHP,
LoadModule php5_module"D:/Develop/PHP/php5apache2_4.dll"
AddHandler application/x-httpd-php. php. html. htm
?
2. add the PHP initialization directory. That is, the directory PHPIniDir after you decompress the PHP compressed package"D:/Develop/PHP"
?
3. add a php file for the homepage.
DirectoryIndex index.html
Change
DirectoryIndex?Index. php? Index.html
?
PHP section:
4. set the Directory of the PHP extension package and find
; On windows:
; Extension_dir = "ext"
Change to (the value is the Directory of the ext folder)
; On windows:
? Extension_dir ="D:/Develop/PHP/ext"
?
5. enable the corresponding library function.
; Extension = php_mysql.dll remove the semicolon (comment), that is, change
Extension = php_mysql.dll
?
6. set the time zone
; Date. timezone =
Change
Date. timezone = Asia/Shanghai
?
PHP document manual:
Http://www.php.net/manual/zh/
?