MacOS – Updating Native Mac OSX Mavericks Apache 2.2 to 2.4 – disabling old version

apachemacos

I have a small problem when I try to update to the new version of Apache WebSrvr on my Mavericks Mac.

I compiled and make installed to a different folder than the native: /usr/local/apache24/.

which httpd => /usr/local/apache24/bin/

I set the enviroment variable for it also.

which apachectl => /usr/local/apache24/bin/apachectl

but when I try to start the server it takes the the binaries from the /usr/local/apache2/

Is there a way to migrate everything to the new instance of the Apache Server?

Best Answer

Since there is no answer I found out something:

Best way to get past the problems from my question:

  • stop the apache server: sudo apachectl stop

  • Backup/rename these files in the default apache folder: ab, httpd & apachectl

    sudo mv /path/to/file/ab /path/to/file/ab.old

  • Create links in the default apache folder:

    sudo ln -s /path/to/originalfile/ab /path/to/where_the_link_should_be_saved/ab

  • Start apache:

    sudo apachectl start

  • Check if the changes were taken:

    httpd -v

    apachectl -v

It should be version 2.4.10 now:)