最近小編開始學習研究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 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
來個效果圖:
原創文章,如果大家有更好的方法與軟件可以分享給我們。謝謝。