Windows server to upgrade the PHP version of the method

  • 2020-05-14 05:35:02
  • OfStack

To upgrade PHP, we have to download a software that automatically installs the PHP component into IIS. The PHP installation package developed by exo is recommended. We can download the latest version from their official website www.7i24.com.

1. If Zend has been installed on the server, please uninstall it first and reinstall it after PHP has been upgraded.

2. Stop IIS and remove the original PHP installation package from the add/remove component.

3. Delete C:\windows\ php. ini.

4. Install the latest PHP installer and restart IIS.

For users who cannot upgrade PHP for special reasons, we ask you to make the following modifications to C:\windows\ php.ini:

Find: disable_functions = this line, instead

disable_functions=exec,system,passthru,popen,pclose,shell_exec,proc_open,curl_exec,multi_exec,dl,chmod,
stream_socket_server,popepassthru,pfsockopen,gzinflate,
Note that everything should be in line 1, not line feed

Find: disable_classes = this line, disable_classes =DOTNET, save and restart IIS to take effect immediately.


Related articles: