Home > Article > Backend Development > PHP - Add support for multiple versions of PHP (PHP53, PHP54, PHP55) under WAMPSERVER. wampserver 64 download wampserver Chinese official website wampserver 32-bit download
Please indicate the source for reprinting: http://blog.csdn.net/l1028386804/article/details/51407450
WAMPServer allows developers to quickly build a WAMP environment under Windows systems. It supports multiple versions of Apache, MySQL, Switching between PHP does not affect each other, which is extremely convenient and fast for PHPer developers.
The following are the steps to support PHP5.3, PHP5.4, PHP5.5, and PHP5.6 under WAMPServer at the same time:
1. Install WAMPServer
Choose the corresponding WAMP version according to your operating system, here I am Select WAMPSERVER-32 BITS & PHP 5.5-2.5, double-click to install, and select the installation directory. It is super simple.
According to the version I installed, PHP5.5.12 has been installed by default. As shown in the picture below, you can find two more special files: phpForApache.ini, wampserver.conf.
2. Download the PHP binary package
PHP currently provides PHP5.3, PHP5.4, PHP5.5, and PHP5.6 versions. Because I installed WAMPSERVER-32 BITS, the corresponding PHP version can only be It is 32-bit. Go to Windows PHP to download the PHP binary ZIP package corresponding to the TS version (Thread-Safe-VC9-X86), and unzip the binary package to the WAMP installation directory, such as D:wamp_2binphp.
3. Add PHP multi-version support
Using my installation directory as a reference, copy the wampserver.conf file under php5.5.12 to each PHP version directory;
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 PHP5.6.3 version Added, similar additions are made in other versions.
4. Select the PHP running environment
Reopen the WAMPServer manager and select the PHP version environment you want to run.
Now, the configuration is complete
The above introduces PHP - adding support for multiple versions of PHP (PHP53, PHP54, PHP55) under WAMPSERVER. , including wampserver content, I hope it will be helpful to friends who are interested in PHP tutorials.