Recently, the editor began to study the PHP environment configuration of win2008 r2, and found that the Guardian God The php suite is very easy to use and easy to install. However, because the php version is not the latest version, I want to upgrade php. Because the new version of php fixes some bugs, I will share the method here. Friends who need it can refer to it.
php package is suitable for 64-bit systems (win2008 r2 /win2012)
Download the new version of php file, here php5.5.24
Note: You need to download the 64-bit version
After downloading and installing:
1. Back up the php directory first
2. Unzip to the php directory, you need to create a new temp directory (and check the permissions)
3. Modify the php.ini configuration file. You can search and modify it by referring to the following
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
Here’s a rendering:
Original article from Bangkejia. If you have better methods and software, please share it with us. Thanks.