How to enable/disable apache graceful restart in Plesk

November 15, 2023 / Plesk Panel

This article explains how to enable/disable Apache graceful restart in plesk via the control panel and command line.

Follow the steps:

Through the control panel:

  1. Log in to the Plesk control panel.
  2. Select the Tools & Settings option under the Server management category.
    Tools & settings
  3. You will enter a new page, locate the General Settings section, and click on the Apache Web Server option.
    Apache web server
  4. Tick the checkbox named Apache graceful restart to enable Apache graceful restart, and untick it to disable.
    Apache web server settings

Through the command-line interface:

  1. Connect to the Plesk server through SSH.
  2. Execute the below command:
    1.  To enable Apache graceful restart-
      # plesk bin settings --set restart_apache_gracefully=true
    2. To disable Apache graceful restart-
      # plesk bin settings --set restart_apache_gracefully=false

Wasn’t it simple? If you liked our article, you will surely love our support. For any assistance, reach out to our support team.

Spread the love