Plesk

How to enable or disable Apache graceful restart in Plesk

Question

Answer

The graceful restart signal for Apache causes the parent process to advise the children to exit after their current request (or to exit immediately if they're not serving anything).

The parent process re-reads its configuration files and re-opens its log files. As each child dies off the parent replaces it with a child from the new generation of the configuration, which begins serving new requests immediately without causing a full interruption for the Apache web server.

Note: Graceful restart for Apache is enabled by default on all new Plesk Obsidian installations.

Enabling or disabling graceful restart for Apache in Plesk Obsidian
  1. Log in to Plesk.

  2. Go to Tools & Settings > Apache Web Server.

  3. Enable/disable the Apache graceful restart option and apply the changes.

 

Enabling or disabling graceful restart for Apache via a command-line interface
  1. Connect to the Plesk server via SSH.

  2. Run the following command:

    • To enable Apache graceful restart

      # plesk bin settings --set restart_apache_gracefully=true

    • To disable Apache graceful restart

      # plesk bin settings --set restart_apache_gracefully=false

Additional Information

Graceful Restart - Stopping and Restarting Apache HTTP Server - Apache HTTP Server Version 2.4

Optimizing Apache Web Server | Setting Up the Apache Restart Interval | Plesk Obsidian documentation

 

Exit mobile version