Home  >  Article  >  Backend Development  >  Alternative solution for installing multiple sets of PHP on WINDOWS server_PHP tutorial

Alternative solution for installing multiple sets of PHP on WINDOWS server_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:09:56694browse

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, we need to install it in php The load option is set in .ini, 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: Just use php.

Then, in IIS -> Home Directory -> Configuration, you can specify different PHP running files for different sites.

After installing two sets of PHP using this method, there is no special impact on system resources. After testing, the system runs normally.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/314442.htmlTechArticleSometimes, we need to install multiple different versions of PHP environments in the WINDOWS server, or use different php. ini configuration, for example, using the IONCUBE system of China E-Business Network to encrypt PHP programs...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn