Changes between Version 9 and Version 10 of howto/Apache2
- Timestamp:
- Jan 7, 2015, 5:20:53 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/Apache2
v9 v10 3 3 [wiki:howto <- Back to the HOWTO section] 4 4 5 This page describes the installation of the '''Apache2''' Web server under OSX (Yosemite 10.10.2) via MacPorts (version 2.3). Date 28 December 2014 5 = About Apache = #about 6 6 7 For information on integration '''Apache''' with '''MySQL''' and '''PHP''', see:''' [[howto/MAMP]]''' 7 The Apache HTTP Server, commonly referred to as Apache, is the world's most-popular web server. 8 8 9 For information on integrating Apache with MySQL and PHP, see [wiki:howto/MAMP MAMP]. 10 11 = Versions = #versions 12 13 MacPorts includes the following versions of Apache: 14 15 * '''apache2''': Apache HTTP Server v2.2.x. This is the recommended port to use. 16 * '''apache24-devel''': Apache HTTP Server v2.4.x. This is intended for testing, and cannot be used to replace apache2 at this time. It has a different directory layout from apache2, so none of the other ports that use apache2 can use apache24-devel. it is expected that the contents of the apache24-devel port will eventually replace the contents of the apache2 port at which time the apache24-devel port will be retired. 17 * '''apache''': Apache HTTP Server v1.3.x. This version reached [http://mail-archives.apache.org/mod_mbox/httpd-announce/201002.mbox/%3c20100203000334.GA19021@infiltrator.stdlib.net%3e end of life] in 2010 and is therefore not recommended. 18 19 This page shows how to install and use the apache2 port. The instructions cannot be easily adapted to the other ports. 9 20 10 21 = Step 1: '''Turn off Apple's "Personal Web Sharing"''' = #pws 11 22 If you haven’t already done so, make sure you turn off Apple’s "Personal Web Sharing" so that the default Apache server is not running. While you can set things up so that both servers run on different ports (e.g., port 80 and port 8080), it’s not worth the hassle of maintaining two web server daemons. Just use the latest Apache from MacPorts and be done with it. 12 23 13 === OS X 10.8 and older ===24 === OS X 10.8 Mountain Lion and earlier === 14 25 Turn off Personal Web Sharing in the Sharing pane of System Preferences. 15 === Mavericks ===26 === OS X 10.9 Mavericks === 16 27 Stop the web server from the command line: 17 28 {{{ 18 29 $ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 19 30 }}} 20 === Yosemite===31 === OS X 10.10 Yosemite and later === 21 32 Yosemite no longer has Personal Web Sharing as an option. Although the Apache 2 web server is still supplied by Apple as part of the Yosemite distribution, there is no "easy" way to turn it on (or off). So, if you managed to turn it on, you already know how to turn it off! 22 33 === OS X Server ===