Add multiple versions of PHP under WampServer

WAMPServer allows developers to quickly build a WAMP environment under the Windows system. It supports switching between multiple versions of Apache, MySQL, and PHP without affecting each other. It is extremely convenient and fast for PHPer developers.

The following are the steps to support PHP5.3, PHP5.4, PHP5.5, and PHP5.6 at the same time under WAMPServer:

1. Install WAMPServer (the official website can't crybe downloaded, only the domestic ones can be downloaded)

After downloading, unzip it, double-click to install, and select the installation directory. It's super simple.

According to the version I installed, PHP5.5.12 has been installed by default here, as shown in the figure below, you can find two more special files: phpForApache.ini , wampserver.conf .

2. Download the PHP version

Note: If the WAMPServer software is 32bit, the downloaded php version must also be 32bit, and if it is 64bit, the corresponding php version must also be 64bit (based on original modifications)








And extract the binary package to the WAMP installation directory, such as D:\wamp_2\bin\php.

3. Add PHP multi-version support

Taking my installation directory as a reference, copy the wampserver.conf file under php5.5.12 to the directory of each version of PHP;

Take php5.6.3 as an example, copy php.ini-development in the directory and rename it to phpForApache.ini , modify the PHP environment parameters in phpForApache.ini according to your own requirements, save and exit;

The above completes the addition of the PHP5.6.3 version, and the addition of other versions is similar.

4. Select the PHP operating environment

Re-open the WAMPServer Manager and select the PHP version environment you want to run.



 Through the above configuration, you can switch between multiple versions!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324844966&siteId=291194637