[MacPorts] howto/Apache2 modified

MacPorts noreply at macports.org
Mon Dec 29 21:31:10 PST 2014


Page "howto/Apache2" was changed by magill at mac.com
Diff URL: <https://trac.macports.org/wiki/howto/Apache2?action=diff&version=6>
Revision 6
Comment: Inserted $ infront of commands
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/Apache2
=========================================================================
--- howto/Apache2 (version: 5)
+++ howto/Apache2 (version: 6)
@@ -15,7 +15,7 @@
 === Mavericks ===
 Stop the web server from the command line:
 {{{
-sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
+$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
 }}}
 === Yosemite ===
 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!
@@ -25,7 +25,7 @@
 = Step 2: Install Apache = #apache
 
 {{{
-sudo port install apache2
+$ sudo port install apache2
 }}}
 
 A sample configuration file is provided in `/opt/local/apache2/conf/original/httpd.conf`. Don't edit this file; leave it as is so you can refer to the defaults later. The first time you install apache2, the sample configuration file will be copied to `/opt/local/apache2/conf/httpd.conf` for you. You can edit this file as desired. When you later upgrade apache2 to a newer version, MacPorts will upgrade the sample configuration file but will not modify your `httpd.conf`, so be sure to manually compare your `httpd.conf` with the new sample configuration file and bring over any relevant changes. You should also keep backup copies of your `httpd.conf` in a safe place.
@@ -33,7 +33,7 @@
 =  Step 3:  Verify your config file =
 Verify any changes you have made to the config file: /opt/local/apache2/conf/httpd.conf
 {{{
- /opt/local/apache2/bin/apachectl -t
+$ /opt/local/apache2/bin/apachectl -t
 }}}
 This will return either "Syntax OK" or a specific line by line error listing.
 
@@ -41,7 +41,7 @@
 Activate your Apache installation so that it starts now and every time you boot your machine: 
 
 {{{
-sudo port load apache2
+$ sudo port load apache2
 }}}
 If when you issue this command, you immediately receive the message:
  /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist: Operation already in progress
@@ -49,13 +49,13 @@
 
 After correcting any config errors and saving the updated config file, simply run:
 {{{
-sudo port unload apache2
+$ sudo port unload apache2
 }}}
 
 to stop apache (even though it is not running) and then start it using
 
 {{{
-sudo port load apache2
+$ sudo port load apache2
 }}}
 
 to start it again.
@@ -68,9 +68,9 @@
 After each change to the config file, you should again verify the file syntax, and then you need to stop and restart Apache for the changes to take effect.
 
 {{{
-/opt/local/apache2/bin/apachectl -t
-sudo port unload apache2
-sudo port load apache2
+$ /opt/local/apache2/bin/apachectl -t
+$ sudo port unload apache2
+$ sudo port load apache2
 }}}
 In 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.
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/Apache2>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'howto/Apache2' page.
If it was not you, please report to .


More information about the macports-changes mailing list