Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell / Chocolatey Install WAMP

Posted on October 20, 2015October 20, 2015 By David Kittell

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.

Related

Chocolatey Code PowerShell

Post navigation

Previous post
Next post

Related Posts

Check Instance Of Application

Posted on May 9, 2014October 26, 2015

Preferred Method: Project Menu -> Properties -> Application -> Check Box: Make Single Instance Application Non-Preferred Method: This code will look in your task manager for the same name of your application, if it exists it will prevent another copy of it from running. ‘ Make sure they only have…

Read More

PowerShell Download Latest WordPress Plugin

Posted on September 17, 2015

This script will call out to a defined URL to check the version of a plugin and download the update if needed. To use: # Download only (if web is newer) #powershell -file DownloadLatestWordPressPlugin.ps1 <WordPress URL> <WordPress Plugin Version Installed> <Download Path> powershell -file DownloadLatestWordPressPlugin.ps1 https://wordpress.org/plugins/akismet/ 3.1.3 c:usersdkittelldesktopdownload # Download…

Read More

Mac OSX Terminal – Format Disk

Posted on June 11, 2019June 11, 2019

This process is very helpful to format a disk that has multiple partitions on it like a Raspberry Pi SD Card. This script can be updated to allow a different type of format (JHFS+ instead of FAT32) but for now it serves my purpose. #!/bin/sh # FormatSDCard.sh # # #…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes