Today, when I was debugging a PHP program, some functions used in the program could not be used in lower versions, so I had to build a higher version of PHP.
As a web developer, it is sometimes necessary to install different versions of php, apache and mysql on your machine.
The following is a screenshot after I successfully configured it
Different versions of PHP:
Different versions of Apache:
Here I will use the installation of php5.3.10 as an example to explain
How to operate:
Left click on the tray icon -> PHP -> Version -> Select Get more...-> After opening the web page, you can see the following screenshot:
Then, click PHP (red framed part)
I want to install PHP5.3.1 here. After finding the corresponding version and downloading it, I can install it by replacing it.
After the installation is completed, you will find an additional php5.3.10 directory in the binphp directory of the wamp installation directory.
Restart wamp, you can then
Left-click the tray icon -> PHP -> Version to switch between different php versions.
The installation methods of Apache and Mysql are similar, so I won’t take detailed screenshots here.