Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

satyam90

macrumors regular
Original poster
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?
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.