Manually update the Apache version of WAMPServer
The situation is to upgrade Apache 2.4.43 in WampServer 3.2.0 to 2.4.48.
In theory, WampServer should be upgraded to 3.2.3 and then to 3.2.5 (required by apache 2.4.48) before installing Apache 2.4.48.
In the WampServer 3.2.5 update, only the wampmanager has been changed, and other components have not been changed.
But in fact, WampServer 3.2.3 is not really a critical update, it just simply includes the new version of each component package, and because the system needs to run below php 7.3.x (Well, it will hurt again if you are forced to upgrade the php version later ). Based on human nature, I want to be as lazy as possible without installing WampServer 3.2.3.
The lazy way is this, first update the VC++ 2015-2019 distributor to v14.29.30037, then install wampserver 3.2.5, then download and install Apache 2.4.48. The above downloads can be found at https://wampserver.aviatechno.net/ .
After installation, you will find that the option of apache 2.4.48 will not appear in the wampserver menu, and this is the part that needs to be modified manually.
First stop all the services managed by wampserver, close wampserver, and start manually editing the original wampmanager.ini (the path on my side is C:\wamp64_3.2.0\wampmanager.ini). The file is long, but the focus is on the apacheVersion section
[apacheVersion] ;WAMPAPACHEVERSIONSTART Type: item; Caption: "2.4.41"; Action: multi; Actions:switchApache2.4.41 Type: item; Caption: "2.4.43"; Action: multi; Actions:switchApache2.4.43 Type: item; Caption: "2.4.48"; Action: multi; Actions:switchApache2.4.48; Glyph: 13 [switchApache2.4.41] ; skip lines [switchApache2.4.43] ; skip lines [switchApache2.4.48] Action: service; Service: wampapache64; ServiceAction: stop; Flags: ignoreerrors waituntilterminated Action: run; Filename: "sc"; Parameters: "\\.stop wampapache64"; ShowCmd: hidden; Flags: waituntilterminated Action: run; Filename: "sc"; Parameters: "\\. delete wampapache64"; ShowCmd: hidden; Flags: waituntilterminated Action: closeservices; Flags: ignoreerrors Action: run; Filename: "taskkill"; Parameters: "/FI ""IMAGENAME eq httpd.exe"" /T /F"; ShowCmd: hidden; Flags: waituntilterminated Action: run; FileName: "c:/wamp64_3.2.0/bin/php/php5.6.40/php.exe";Parameters: "switchApacheVersion.php 2.4.48";WorkingDir: "c:/wamp64_3.2.0/scripts" ; Flags: waituntilterminated Action: run; FileName: "c:/wamp64_3.2.0/bin/php/php5.6.40/php-win.exe";Parameters: "switchPhpVersion.php 7.3.12";WorkingDir: "c:/wamp64_3.2.0/ scripts"; Flags: waituntilterminated Action: run; FileName: "c:/wamp64_3.2.0/bin/apache/apache2.4.48/bin/httpd.exe"; Parameters: "-n wampapache64 -k install"; ShowCmd: hidden; Flags: waituntilterminated Action: run; Filename: "sc"; Parameters: "\\.config wampapache64 start= demand"; ShowCmd: hidden; Flags: waituntilterminated Action: run; FileName: "c:/wamp64_3.2.0/bin/php/php5.6.40/php.exe";Parameters: "switchWampPort.php 80 notvhost";WorkingDir: "c:/wamp64_3.2.0/scripts"; Flags: waituntilterminated Action: run; FileName: "net"; Parameters: "start wampapache64"; ShowCmd: hidden; Flags: waituntilterminated Action: run; FileName: "c:/wamp64_3.2.0/bin/php/php5.6.40/php-win.exe";Parameters: "refresh.php";WorkingDir: "c:/wamp64_3.2.0/scripts"; Flags: waituntilterminated Action: resetservices Action: readconfig ;WAMPAPACHEVERSIONEND
Make a copy of the original 2.4.43, change it to 2.4.48, and add more options of 2.4.48 to the original menu settings, and check the default (; Glyph: 13), from 2.4.43 to 2.4. 48 (lines 4~5 above).
Then search the file for 2.4.43, which should be changed to 2.4.48, and then restart wampserver. (When restarting, you will be asked if you want to copy the original 2.4.43 config to 2.4.48, just ask yourself decide).
Original link: Phanix's Blog
Like my work? Don't forget to support and clap, let me know that you are with me on the road of creation. Keep this enthusiasm together!