10.5 Leopard – Change the Version of Apache that Starts Up

A clean install of MacOS X 10.5 Leopard will result in Apache 2 being the default version of Apache that starts up when you enable the web service. If you performed an upgrade to Leopard from a Tiger install then Apache version 1.3 will be the default version of Apache that starts up. MacOS X 10.5 Leopard comes with both versions of Apache. If you need to change the version of Apache that starts up do the following:

  1. Stop the web service if it is running.
  2. Edit the hidden file /var/db/.ApacheVersion with pico or some other text editor
    1. 1 for apache 1.x, 2 for apache 2.x
  3. Restart the web service
  4. The Server Admin app will now display the correct settings for whatever version of Apache you are running
  5. Done.