Windows Server installs multiple sets of PHP alternative solutions

Source: Internet
Author: User
Tags copy ini zend
window| Server | solve

Sometimes, we need to install several different versions of the PHP environment in the Windows Server, or adopt different php.ini configuration, for example, after encrypting the PHP program using the Ioncube system of China e Business Network, To set the load selection in php.ini, this option and the Zend Cryptographic interpreter cannot exist at the same time, which is a pity if there is another program in the server that uses Zend encryption.

If you can load multiple sets of PHP in a Windows server, you can solve this problem by using different php.ini. However, if you use the normal method to recompile PHP, more trouble. We have recently been successful in a different way of installing multiple PHP:

First install a set of PHP, the default way, installed in c:php, after installation, php.ini generally automatically copied to c:winnt under.

Copy the php.ini under Winnt to c:php under CTRL + C and CTRL + V, at which point you can use Phpinfo () to view the php.ini path, which has automatically become C:/php/php.ini.

Next, you can install a second set of PHP, preferably a disk, installed in d:php, installation, PHP will php.ini copy in the C:winnt, as long as the same copy to the d:php under the next can be.

Then, in the IIS-> home directory-> configuration, you can specify different PHP run files for different sites.

Using this method to install two sets of PHP, no special impact on the system resources, after testing, the system runs normally.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.