1. Download apache haus
Download address: http://www.apachehaus.com/cgi-bin/download.plx
Configure apache’s support for php.
php5 support
LoadModule php5_module D:/php/php5apache2_4.dll
AddType application/x-httpd-php .php .html .htm
configure the path to php.ini
PHPIniDir “D:/php”
Install as a service
httpd -k install
httpd -k start
Other command line options:
Stop Apache httpd -k stop
Restart Apache httpd -k restart
Uninstall Apache Service httpd -k uninstall
Test Config Syntax httpd -t
Version Details httpd -V
Command Line Options List httpd -h
2.php download
http://windows.php.net/download/
Unzip and modify php.ini-development to php.ini.
Open php.ini and modify the following content:
1) extension_dir = "ext" changed to extension_dir = "C:serversphp-5.6.13-Win32-VC11-x86ext"
2) Modify date.timezone =Asia/Shanghai
3) Remove the ";" in front of these files
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_xmlrpc.dll
At this point, the establishment of the PHP operating environment under win7 is completed. Later, we will start to configure PHP connection mysql support.
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the establishment of the PHP running environment under Win7, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.