[MacPorts] Apache2.4.x modified

MacPorts noreply at macports.org
Wed Oct 25 15:17:14 UTC 2017


Page "Apache2.4.x" was changed by whmagill
Diff URL: <https://trac.macports.org/wiki/Apache2.4.x?action=diff&version=5>
Revision 5
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Apache2.4.x
=========================================================================
--- Apache2.4.x (version: 4)
+++ Apache2.4.x (version: 5)
@@ -116,25 +116,35 @@
 
 If the web server  is NOT running at this point, a configuration error is your most likely problem. 
 
-Verify your config file as above.
-
-After correcting any config errors and saving the updated config file, again run:
-
+Verify your config file as in step 3 above and make any necessary corrections.
+
+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/sbin/apachectl -t'''\\
  '''$ sudo port unload apache2'''\\
  '''$ sudo port load apache2'''
 
-The default log file location is: `opt/local/var/log/apache2/'` The shutdown and startup attempt will be logged in "'''error_log'''"
+The default log file location is: `/opt/local/var/log/apache2/'` The shutdown and startup attempt will be logged in "'''error_log'''"
+
+* Typical start messages found in "error_log:\\
+ [DATE-TIME] [mpm_prefork:notice] [pid nnnn] AH00163: Apache/2.4.27 (Unix) PHP/7.1.7 configured -- resuming normal operations\\
+ [DATE-TIME] [core:notice] [pid nnnn] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'\\
+
+
+* Typical shutdown  message found in "error_log:\\
+ [Sat Oct 21 14:21:23.781001 2017] [mpm_prefork:notice] [pid 6239] AH00169: caught SIGTERM, shutting down
+
 
 = Step 5: '''Initial changes to the config file''' =
 Once you have determined that your basic installation is working, you need to consider making some initial changes to your config file.
 
-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.
+Remember: 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/sbin/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.
+In Apache documentation, you will see the use of "''apachectl -k restart''" described as the method to cause the config file to be re-read.
 
 However under OSX, the purpose of ''launchd'' is to notice processes that stop without its knowledge, and to restart them. 
 So if you use ''apachectl -k restart'', launchd may notice apache "crashing" and restart it itself, confusing apachectl. 
@@ -238,7 +248,7 @@
 The complete dialog is listed here for reference. The commands necessary are prefixed as "$ sudo", with comments prefixed with a #.\\
 
 {{{
-$ sudo openssl genrsa -des3 -out server.key 1024
+$ sudo openssl genrsa -des3 -out server.key 2048
 # Enter pass phrase for server.key [enter your passphrase, a simple password we will remove soon]
 
 Generating RSA private key, 1024 bit long modulus
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/Apache2.4.x>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'Apache2.4.x' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list