Changes between Version 4 and Version 5 of Apache2.4.x


Ignore:
Timestamp:
Oct 25, 2017, 3:17:14 PM (7 years ago)
Author:
whmagill
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Apache2.4.x

    v4 v5  
    117117If the web server  is NOT running at this point, a configuration error is your most likely problem.
    118118
    119 Verify your config file as above.
    120 
    121 After correcting any config errors and saving the updated config file, again run:
    122 
     119Verify your config file as in step 3 above and make any necessary corrections.
     120
     121After 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.
     122
     123 '''$ /opt/local/sbin/apachectl -t'''\\
    123124 '''$ sudo port unload apache2'''\\
    124125 '''$ sudo port load apache2'''
    125126
    126 The default log file location is: `opt/local/var/log/apache2/'` The shutdown and startup attempt will be logged in "'''error_log'''"
     127The default log file location is: `/opt/local/var/log/apache2/'` The shutdown and startup attempt will be logged in "'''error_log'''"
     128
     129* Typical start messages found in "error_log:\\
     130 [DATE-TIME] [mpm_prefork:notice] [pid nnnn] AH00163: Apache/2.4.27 (Unix) PHP/7.1.7 configured -- resuming normal operations\\
     131 [DATE-TIME] [core:notice] [pid nnnn] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'\\
     132
     133
     134* Typical shutdown  message found in "error_log:\\
     135 [Sat Oct 21 14:21:23.781001 2017] [mpm_prefork:notice] [pid 6239] AH00169: caught SIGTERM, shutting down
     136
    127137
    128138= Step 5: '''Initial changes to the config file''' =
    129139Once you have determined that your basic installation is working, you need to consider making some initial changes to your config file.
    130140
    131 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.
     141Remember: 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.
    132142
    133143 '''$ /opt/local/sbin/apachectl -t'''\\
     
    135145 '''$ sudo port load apache2'''\\
    136146
    137 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.
     147In Apache documentation, you will see the use of "''apachectl -k restart''" described as the method to cause the config file to be re-read.
    138148
    139149However under OSX, the purpose of ''launchd'' is to notice processes that stop without its knowledge, and to restart them.
     
    239249
    240250{{{
    241 $ sudo openssl genrsa -des3 -out server.key 1024
     251$ sudo openssl genrsa -des3 -out server.key 2048
    242252# Enter pass phrase for server.key [enter your passphrase, a simple password we will remove soon]
    243253