iis10安装php

作者: admin 分类: php 发布时间: 2018-08-27 18:11

方法1.安装php manager,安装好后在配置页注册新php版本,选择php-cgi.exe,保存

方法2.在fastcgi设置里添加php版本,fastcgi属性添加环境变量

PHP_FCGI_MAX_REQUESTS值为200

PHPRC值为php安装目录

在监视对文件的更改中选择php.ini文件

可选:在fastcgi设置中-php版本-进程模型-活动超时配置超时时间

 

php.ini文件

先注释掉

;post_max_size = 8M
;upload_max_filesize = 2M
;max_execution_time = 30

[Custom]
display_errors = On
post_max_size = 2000M
upload_max_filesize = 2000M
cgi.force_redirect = 0
cgi.fix_pathinfo = 1
fastcgi.impersonate = 1
fastcgi.logging = 0
max_execution_time = 300
date.timezone = Asia/Shanghai
error_log = F:\command\php-7.2.9-nts-Win32-VC15-x64\php_errors.log
extension_dir = "F:\command\php-7.2.9-nts-Win32-VC15-x64\ext\"

[PHP_CURL]
extension=php_curl.dll
[PHP_GD2]
extension=php_gd2.dll
[PHP_GETTEXT]
extension=php_gettext.dll
[PHP_MYSQLI]
extension=php_mysqli.dll
[PHP_MBSTRING]
extension=php_mbstring.dll
[PHP_OPENSSL]
extension=php_openssl.dll
[PHP_SOAP]
extension=php_soap.dll
[PHP_XMLRPC]
extension=php_xmlrpc.dll
extension=pdo_mysql
extension=pdo_sqlite


[Xdebug]
zend_extension="F:\command\php-7.2.9-nts-Win32-VC15-x64\ext\php_xdebug-2.6.1-7.2-vc15-nts-x86_64.dll"
xdebug.profiler_enable=on