Changes between Version 5 and Version 6 of howto/Apache2


Ignore:
Timestamp:
Dec 30, 2014, 5:31:08 AM (9 years ago)
Author:
magill@…
Comment:

Inserted $ infront of commands

Legend:

Unmodified
Added
Removed
Modified
  • howto/Apache2

    v5 v6  
    1616Stop the web server from the command line:
    1717{{{
    18 sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
     18$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
    1919}}}
    2020=== Yosemite ===
     
    2626
    2727{{{
    28 sudo port install apache2
     28$ sudo port install apache2
    2929}}}
    3030
     
    3434Verify any changes you have made to the config file: /opt/local/apache2/conf/httpd.conf
    3535{{{
    36  /opt/local/apache2/bin/apachectl -t
     36$ /opt/local/apache2/bin/apachectl -t
    3737}}}
    3838This will return either "Syntax OK" or a specific line by line error listing.
     
    4242
    4343{{{
    44 sudo port load apache2
     44$ sudo port load apache2
    4545}}}
    4646If when you issue this command, you immediately receive the message:
     
    5050After correcting any config errors and saving the updated config file, simply run:
    5151{{{
    52 sudo port unload apache2
     52$ sudo port unload apache2
    5353}}}
    5454
     
    5656
    5757{{{
    58 sudo port load apache2
     58$ sudo port load apache2
    5959}}}
    6060
     
    6969
    7070{{{
    71 /opt/local/apache2/bin/apachectl -t
    72 sudo port unload apache2
    73 sudo port load apache2
     71$ /opt/local/apache2/bin/apachectl -t
     72$ sudo port unload apache2
     73$ sudo port load apache2
    7474}}}
    7575In Apache documentation (including this page), you will see the use of "''apachectl -k restart''" described as the method to cause the config file to be re-read.