A while ago I thought that it would be handy to install Apache2 on my MacBook and not go the easy route by just installing MAMP. However now I’ve changed my mind but I can’t simply delete Apache2. I’ve already tried the following:
sudo nano /etc/apache2/httpd.conf
In this file the #
symbol was still in front of the PHP5 line, however PHP is still working.
Sometimes the page localhost says: “It Works!” and sometimes it says ERR_CONNECTION_REFUSED
.
I’m worried that this will screw up the MAMP installation. I don’t want to reinstall the OS.
I read that the command might help to figure out what’s using the port:
sudo lsof -i:80
This is what it says for me:
How can I remove Apache2?