最近小编开始学习研究win2008 r2的php环境配置,发现护卫神的php套件非常好用,安装简单,但是因为php版本不是最新的版本,所以就想将php升级下,因为新版的php修复了一些bug所以这里就分享下方法,需要的朋友可以参考下。
php套件适用于 64位的系统(win2008 r2 /win2012)
再下载新版的php文件,这里php5.5.24
注意:需要下载64位的
下载安装以后:
1、先将php目录备份一下
2、解压到php目录,需要新建temp目录(并检查下权限)
3、修改php.ini配置文件,可以参考下搜索并修过
1、dll文件 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=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_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 FilesPHPWEBphpext" cgi.force_redirect = 0 cgi.fix_pathinfo=1 fastcgi.impersonate = 1 upload_tmp_dir ="e:Program FilesPHPWEBphptemp" upload_max_filesize = 200M max_file_uploads = 200 session.save_path ="e:Program FilesPHPWEBphptemp" session.auto_start = 1
来个效果图:
查字典教程网原创文章,如果大家有更好的方法与软件可以分享给我们。谢谢。