#34 Updates for current httpd best practice in Fedora.
Merged 4 years ago by pbokoc. Opened 4 years ago by jorton.
fedora-docs/ jorton/system-administrators-guide master  into  master

@@ -24,7 +24,7 @@ 

  

  [subs="quotes"]

  ----

- apachectl graceful

+ systemctl reload httpd

  ----

  

  The `systemd` unit file for `httpd` has different behavior from the init script as follows:
@@ -91,8 +91,6 @@ 

  

  mod_auth_mysql, mod_auth_pgsql::: [application]*httpd 2.4* provides SQL database authentication support internally in the [application]*mod_authn_dbd* module.

  

- mod_perl::: [application]*mod_perl* is not officially supported with [application]*httpd 2.4* by upstream.

- 

  mod_authz_ldap::: [application]*httpd 2.4* provides LDAP support in sub-package [package]*mod_ldap* using [application]*mod_authnz_ldap*.

  

  [[s2-apache-version2-migrating]]
@@ -191,23 +189,22 @@ 

  

  This stops the running `httpd` service and immediately starts it again. Use this command after installing or removing a dynamically loaded module such as PHP.

  

- . To only reload the configuration, as `root`, type:

+ . To only reload the configuration without interrupting active requests, as `root`, type:

  

  [subs="attributes"]

  ----

  ~]#{nbsp}systemctl reload httpd.service

  ----

  

- This causes the running `httpd` service to reload its configuration file. Any requests currently being processed will be interrupted, which may cause a client browser to display an error message or render a partial page.

+ This causes the running `httpd` service to reload its configuration file. Any requests currently being processed will not be interrupted, so configuration changes will only take effect for new client connections.

  

- . To reload the configuration without affecting active requests, enter the following command as `root`:

+ . To reload the configuration and immediately terminate any active connections, enter the following command as `root`:

  

  [subs="attributes"]

  ----

- ~]#{nbsp}apachectl graceful

+ ~]#{nbsp}systemctl kill --kill-who=main --signal=HUP httpd

  ----

  

- This causes the running `httpd` service to reload its configuration file. Any requests currently being processed will continue to use the old configuration.

  

  [[s3-apache-running-status]]

  ==== Verifying the Service Status

graceful restarts have been default for a while; prefer systemctl over apachectl.

Pull-Request has been merged by pbokoc

4 years ago