最近小编开始学习研究win2008 r2的PHP环境配置,发现护卫神的PHP套件非常好用,安装简单,但是因为PHP版本不是最新的版本,所以就想将PHP升级下,因为新版的PHP修复了一些bug所以这里就分享下方法,需要的朋友可以参考下。
再下载新版的php文件,这里 注意:需要下载64位的
下载安装以后:
1、先将PHP目录备份一下
2、解压到PHP目录,需要新建temp目录(并检查下权限)
extension=PHP_bz2.dll
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_MysqL.dll
extension=PHP_MysqLi.dll
;extension=PHP_oci8.dll ; Use with Oracle 10gR2 Instant Client
;extension=PHP_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client
extension=PHP_openssl.dll
;extension=PHP_pdo_firebird.dll
extension=PHPpdoMysqL.dll
;extension=PHP_pdo_oci.dll
extension=PHP_pdo_odbc.dll
extension=PHP_pdo_pgsql.dll
extension=PHPpdosqlite.dll
extension=PHP_pgsql.dll
;extension=PHP_pspell.dll
;extension=PHP_shmop.dll
; The MIBS data available in the PHP distribution must be installed.
; See http://www.PHP.net/manual/en/snmp.installation.PHP
;extension=PHP_snmp.dll
;extension=PHP_soap.dll
;extension=PHP_sockets.dll
extension=PHP_sqlite3.dll
;extension=PHP_sybase_ct.dll
;extension=PHP_tidy.dll
;extension=PHP_xmlrpc.dll
;extension=PHP_xsl.dll
2、时区问题
date.timezone = PRC
3、其他设置
short_open_tag = Off
disable_functions =exec,system,passthru,popen,pclose,shell_exec,proc_open,dl,chmod
max_input_vars = 1000
error_log = syslog 开启日志
request_order = "CGP"
post_max_size = 200M
extension_dir ="e:\Program Files\PHPWEB\PHP\ext\"
cgi.force_redirect = 0
cgi.fix_pathinfo=1
fastcgi.impersonate = 1
upload_tmp_dir ="e:\Program Files\PHPWEB\PHP\temp\"
upload_max_filesize = 200M
max_file_uploads = 200
session.save_path ="e:\Program Files\PHPWEB\PHP\temp\"
session.auto_start = 1
来个效果图:
原文链接:https://www.f2er.com/php/21991.html