Sometimes, we need to install multiple different versions of PHP environments in the WINDOWS server, or use different php.ini configurations. For example, after using the IONCUBE system of China E-Business Network to encrypt the PHP program, you need to configure it in php.ini Set the loading option, but this option and the zend encryption program interpreter cannot exist at the same time. It would be a pity if there is another program in the server that uses ZEND encryption.
If you can install multiple sets of PHP in the WINDOWS server and use different PHP.INI, you can solve this problem. But if you use the formal method to recompile PHP, it will be more troublesome. We have recently successfully researched and used another method to install multiple PHPs:
First install a set of PHP, using the default method, installed in c:php. After installation, php.ini is usually automatically copied to c:winnt. .
Use Ctrl+c and Ctrl+V to copy php.ini under winnt to c:php. At this time, you can use PHPINFO() to view the path of php.ini, which has automatically changed to c:/php/ php.ini.
Then, you can install the second set of PHP. It is best to change the disk and install it in d:php. During installation, PHP will copy php.ini to c:winnt. Just copy it to d:php in the same way. Just download it.
Then, in IIS -> Home Directory -> Configuration, you can specify different PHP running files for different sites.
After using this method to install two sets of PHP, there is no special impact on system resources. After testing, the system runs normally.