So I thought “hey, I need Apache”, so I downloaded the source from the Apache website, compiled and installed it using all the default options. Then I realised “oh, I already had Apache”, as it came with OS X.
So now I have two apache installs and I am trying to figure out which is which.
The original install has its httpd.config file in /etc/apache2, and its ServerRoot set to /usr. The new install has its config in /etc/httpd, and its ServerRoot set to /usr/local/apache2.
The executables (httpd, apachectl etc.) from the original install seem to be in /usr/sbin, and they appear in the path. The /usr/local/apache2 files are not in the path.
So now I have two versions, one I can start by using the command “apachectl” on its own, and one by explicitly calling /usr/local/apache2/bin/apachectl, both of which can apparently run independently of each other (but not at the same time).
I suppose I could dump one or other version now I know which is which. For now I will try out the Apple-provided one and ignore the new one, and see how it goes.