Changes between Version 4 and Version 5 of Apache2.4.x
- Timestamp:
- Oct 25, 2017, 3:17:14 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Apache2.4.x
v4 v5 117 117 If the web server is NOT running at this point, a configuration error is your most likely problem. 118 118 119 Verify your config file as above. 120 121 After correcting any config errors and saving the updated config file, again run: 122 119 Verify your config file as in step 3 above and make any necessary corrections. 120 121 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. 122 123 '''$ /opt/local/sbin/apachectl -t'''\\ 123 124 '''$ sudo port unload apache2'''\\ 124 125 '''$ sudo port load apache2''' 125 126 126 The default log file location is: `opt/local/var/log/apache2/'` The shutdown and startup attempt will be logged in "'''error_log'''" 127 The 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 127 137 128 138 = Step 5: '''Initial changes to the config file''' = 129 139 Once you have determined that your basic installation is working, you need to consider making some initial changes to your config file. 130 140 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.141 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. 132 142 133 143 '''$ /opt/local/sbin/apachectl -t'''\\ … … 135 145 '''$ sudo port load apache2'''\\ 136 146 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.147 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. 138 148 139 149 However under OSX, the purpose of ''launchd'' is to notice processes that stop without its knowledge, and to restart them. … … 239 249 240 250 {{{ 241 $ sudo openssl genrsa -des3 -out server.key 1024251 $ sudo openssl genrsa -des3 -out server.key 2048 242 252 # Enter pass phrase for server.key [enter your passphrase, a simple password we will remove soon] 243 253