运行环境
- 安装Apache
- 下载地址
- http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/
- 解压软件包;
- 启动httpd.exe
- 出现443端口绑定问题请用netstat -aon,结束进程后再启动
安装php
- 下载地址http://windows.php.net/download/,下载zip和debugger
- 解压到磁盘
配置php.ini-development
“` extension_dir = “ext”
extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll ; Must be after mbstring as it depends on it
;extension=php_mysqli.dll
;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite3.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dlldate.timezone =RPC“`
- 在Apache中配置php
LoadModule php7_module C:/php7/php7apache2_4.dll
AddType application/x-httpd-php .php .html .htm
PHPIniDir "C:/php7"