Recently small set began to study win2008 R2 PHP environment configuration, found that the security of God's PHP suite is very easy to install, but because the PHP version is not the latest version, so I would like to upgrade PHP, because the new version of PHP fixed some bugs so here is to share the method, Need a friend to refer to under.
PHP Suite is available for 64-bit systems (win2008 r2/win2012)
Then download the new version of the PHP file, here php5.5.24
Note: You need to download the 64-bit
After downloading the installation:
1, the first backup of the PHP directory
2, extract to the PHP directory, need to create a new temp directory (and check the permissions)
3, modify the php.ini configuration file, you can refer to the search and repair
1, DLL file 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 is after mbstring as it depends on it extension=php_mysql.dll extension=php_mysqli.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 is installed. ; 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, time zone problem Date.timezone = PRC 3, other settings Short_open_tag = Off Disable_functions =exec,system,passthru, Popen,pclose,shell_exec,proc_open,dl,chmod Max_input_vars = 1000 error_log = syslog open Log request_order = "CGP" post_m Ax_size = 200M Extension_dir = "E:\Program files\phpweb\php\ext\" cgi.force_redirect = 0 cgi.fix_pathinfo=1 fastcgi.imper Sonate = 1 Upload_tmp_dir = "E:\Program files\phpweb\php\temp\" upload_max_filesize = 200M Max_file_uploads = Session . Save_path = "E:\Program files\phpweb\php\temp\" Session.auto_start = 1
An effect chart:
Cloud-dwelling Community original article, if you have a better way to share with the software to us. Thank you.