Changes between Version 9 and Version 10 of howto/Apache2


Ignore:
Timestamp:
Jan 7, 2015, 5:20:53 AM (9 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Add About and Versions sections

Legend:

Unmodified
Added
Removed
Modified
  • howto/Apache2

    v9 v10  
    33[wiki:howto <- Back to the HOWTO section]
    44
    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
    66
    7 For information on integration '''Apache''' with '''MySQL''' and '''PHP''', see:''' [[howto/MAMP]]'''
     7The Apache HTTP Server, commonly referred to as Apache, is the world's most-popular web server.
    88
     9For information on integrating Apache with MySQL and PHP, see [wiki:howto/MAMP MAMP].
     10
     11= Versions = #versions
     12
     13MacPorts 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
     19This page shows how to install and use the apache2 port. The instructions cannot be easily adapted to the other ports.
    920
    1021= Step 1: '''Turn off Apple's "Personal Web Sharing"''' = #pws
    1122If 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.
    1223
    13 === OS X 10.8 and older ===
     24=== OS X 10.8 Mountain Lion and earlier ===
    1425Turn off Personal Web Sharing in the Sharing pane of System Preferences.
    15 === Mavericks ===
     26=== OS X 10.9 Mavericks ===
    1627Stop the web server from the command line:
    1728{{{
    1829$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
    1930}}}
    20 === Yosemite ===
     31=== OS X 10.10 Yosemite and later ===
    2132Yosemite 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!
    2233=== OS X Server ===