Contents
Why is httpd not running as a regular user?
Not running as a regular user means httpd can not listen on privileged ports (1024 and below). So even if httpd.conf is configured to listen to 80 and 443, httpd can not receive requests through those ports. The peculiarity is when you start httpd by running the command: sudo apachectl start.
Why is homebrew-apache2 ( httpd ) not working?
If you didn’t modify the httpd config files or the apachectl scripts heavily the Apple branch will use Apple’s httpd.conf file in /var and the DocumentRoot in the /Library folder. The homebrew branch uses subfolders in /usr/local/. Some launch methods won’t work if you’ve bound the httpd ports to ports lower than 1024!
How to start homebrew Apache with launchctl load?
If you’ve copied the file homebrew.mxcl.httpd.plist manually to either ~/Library/LaunchAgents/ or /Library/LaunchDaemons/ you have two more options to start it by loading them with (sudo) launchctl load ….
How many ways to start httpd in homebrew?
In my opinion you hosed your various httpd launch daemons/start mechanisms by executing too many httpd related commands. With homebrew and homebrew’s apache-httpd installed and the default PATH you have six ways to start httpd.
How to unregister Windows 10 subsystem for Linux ( WSL )?
1. Open a command prompt. 2. Copy and paste the command below for your version of Windows 10 into the command prompt, and press Enter. Make note of the name of the available WSL distro you want to unregister.
What happens when I unregister a WSL distro?
The unregistered WSL distro will be removed from the available WSL distros list. When you run the unregisted WSL distro app next, a clean copy of the distro will be installed allowing you to also setup the distro with a new UNIX username and password.
Why is httpd not working on homebrew server?
The homebrew branch uses subfolders in /usr/local/. Some launch methods won’t work if you’ve bound the httpd ports to ports lower than 1024! If you use (sudo) brew services to start httpd you have to use the proper (sudo) brew services list command to check the status:
How to start homebrew httpd on ports 80 and 443?
This command starts httpd as root user. Root user is allowed to listen on ports 80 and 443. httpd then drops privileges back running as the _www user. So the short answer is to run homebrew httpd on ports 80 and 443 is to start it using: sudo apachectl start. You can also start it with: sudo brew services start httpd.