Following the Chocolatey post we now install WAMP (Windows, Apache, MySQL, and PHP).
Open PowerShell as administrator
choco install -y wamp-server
Configure WAMP for port 8080
copy "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf" "C:\wamp\bin\apache\apache2.4.9\conf\httpd_backup.conf"
(gc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf").replace('Listen 0.0.0.0:80','Listen 0.0.0.0:8080') | sc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf"
(gc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf").replace('Listen [::0]:80','Listen [::0]:8080') | sc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf"
(gc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf").replace('ServerName localhost:80','ServerName localhost:8080') | sc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf"
Clear-Host
$srvName = "wampapache64"
$servicePrior = Get-Service $srvName
"$srvName is now " + $servicePrior.status
Set-Service $srvName -startuptype manual
Start-Service $srvName
$serviceAfter = Get-Service $srvName
"$srvName is now " + $serviceAfter.status
$srvName = "wampmysqld64"
$servicePrior = Get-Service $srvName
"$srvName is now " + $servicePrior.status
Set-Service $srvName -startuptype manual
Start-Service $srvName
$serviceAfter = Get-Service $srvName
"$srvName is now " + $serviceAfter.status
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.