Updating Web server on Mac

Discussion in 'Mac Apps and Mac App Store' started by satyam90, Mar 20, 2009.

  1. satyam90 macrumors regular


    Jul 30, 2007
    Bangalore, India
    httpd -V on terminal of my mac provided me details of Apache version: 1.3.41, but now Apache 2 got released. How to update Apache to latest version.
    Also can some body tell me how to stop this Apache on my Mac?
  2. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    Both of these things aren't that hard.

    First of all, stopping Apache if it's running can be done from the Sharing preference pane. Just turn off Web Sharing - this stops the built-in Apache.

    Installing Apache 2 is a bit more involved, but not particularly hard. In a nutshell:
    • Run ./configure --help to get a list of options - make note of the ones you want to use
    • Install Xcode if it isn't already installed (this you do NOT do from the Terminal, but it's required to compile Apache)
    • Run ./configure with the options you chose earlier
    • Then, run make
    • Finally, sudo make install (you'll need to provide your password)
    Do all of this from the Terminal, after changing to the Apache 2 source folder once it's downloaded and unpacked.

    Then, you'll want to make some configuration changes to make your Apache 2 installation more secure. A quick Google found some links you might find useful.

Share This Page