If you have a non running web server fron a previous life. This means any of
It must be uninstalled. Period!
Important: If you have documents in an htdocs, or www directory belonging to any of MAMPP, WAMPP, or XAMPP you may want to save it to another place on your hard drive before you erase MAMPP, WAMPP, or XAMPP. You can move it back to the appropriate location after the following install.
No web developer lives without a running web server. Noone! So, when the above is done, you must proceed with the following.
First unload Mac's built in apache
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
Then do
brew install httpd
And then
sudo brew services start httpd
The web server is now available as a service.
Reach it from your browser at
http://localhost:8080.
It's root directory is:
/usr/local/var/www
All your future web work should be placed in
that branch of your file system.
Now we will benefit from installing
Chocolatey.
Start cmd as
administrator and do
choco install apache-httpd
You will be asked for a "Y" a couple of times, give it, then restart when prompted. Once you have it installed, maintenance is simple. Start the CLI and do
choco upgrade apache-httpd
The web server is now available as a service.
Reach it from your browser at
http://localhost:8080.
It's root directory is:
C:\Brugere\<youruserid>\Roaming\Apache24\htdocs
All your future web work should be placed in
that branch of your file system.