I've had major issues with my default Apache install ever since I installed MAMP. I've uninstalled MAMP now but I'm still getting issues such as multiple Apache processes running, not stopping/starting/restarting, and the Web Sharing option not showing the correct state in System Preferences. I'm assuming MAMP has changed something within the default version of Apache, is there any way to easily replace the entire Apache install?
Thanks, Alex
Best Answer
Has another Apache been installed? From a terminal (Applications-> Utilities-> Terminal.app) try:
You should see something like the following if your local web sharing is enabled:
Then try
This should return nothing if you are using the default install, but might if another server was installed.
If apache is running from anything other than /usr/sbin, then you may want to investigate your PATH environment variable in case it has been altered.
You could also try using the default httpd.conf file supplied by Apple (in case yours has been edited).
Make a backup of the current one
Copy the 'original' httpd.conf file
Restart the web server
On a side note.. If you are or will be doing any long term web development, I would advise installing apache2, php, mysql, etc from MacPorts or Homebrew. There is a little bit of a learning curve, but it's easy when you get the hang of it and you will benefit over the long haul. Example port commands:
Search for applications to install
Install apache2
Uninstall apache2
Upgrade..
Also, MacPorts installs everything into the /opt/ directory (I think Homebrew does as well), so you can always just delete the entire directory if you do not want them anymore. Again, if you do not mind digging in the trenches a bit and can be patient while your computer compiles these apps from source code (this can be lengthy), it will be worth your while.