How to enable/disable Apache graceful restart in Plesk - Support Cases from Plesk Knowledge BaseHow to enable/disable Apache graceful restart in Plesk - Support Cases from Plesk Knowledge Base
How to enable/disable Apache graceful restart in Plesk - Support Cases - Plesk Knowledge Base




Skip to content Contact us: +34 944 58 06 58 Plesk Partner Program Plesk Lifecycle Policy Blog Contact us Plesk 360 Menu Contact us: +34 944 58 06 58 Plesk Partner Program Plesk Lifecycle Policy Blog Contact us Plesk 360 Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers Menu Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration Plesk WordPress Edition Menu Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration Plesk WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Menu Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Exclusive discounts, benefits and exposure to take your business to the next level Become a partner Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Menu Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Menu WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Menu Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Imunify360 Pricing Extensions Help Center More Careers Events Plesk University FREE TRIAL Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Partner Program Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Extension Pricing Extensions Help center More Careers Events Webinars Plesk University Blog Plesk Partner Program Contact Us FREE TRIAL Menu Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Partner Program Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Extension Pricing Extensions Help center More Careers Events Webinars Plesk University Blog Plesk Partner Program Contact Us FREE TRIAL Knowledge Base How to enable/disable Apache graceful restart in Plesk apachedatabasehttpplesk for linuxplesk obsidian Question How to enable/disable graceful restart for Apache in Plesk? How to make Apache reload instead of restarting when applying settings in Plesk? Answer Note: Graceful restart for Apache is enabled by default on all new Plesk Obsidian installations. Enabling/disabling graceful restart for Apache in Plesk Obsidian Log in to Plesk. Go to Tools & Settings > Apache Web Server. Enable/disable the Apache graceful restart option and apply the changes. Enabling/disabling graceful restart for Apache in Plesk Onyx To enable Apache graceful restart, set the restart_apache_gracefully parameter to true in the psa.misc table: Connect to the Plesk server via SSH. For security reasons, create a dump of the Plesk database: # plesk db dump psa > psa_backup.$(date +%F_%R).sql Run the following command: To enable Apache graceful restart # plesk db “INSERT INTO psa.misc VALUES (‘restart_apache_gracefully’, ‘true’)” If restart_apache_gracefully already exists (the command above fails with “Duplicate entry”) in the psa.misc table, run: # plesk db “UPDATE psa.misc SET val=’true’ WHERE param = ‘restart_apache_gracefully'” To disable Apache graceful restart # plesk db “UPDATE psa.misc SET val=’false’ WHERE param = ‘restart_apache_gracefully'” Check Apache graceful restart status with the command: # plesk db “select * from psa.misc WHERE param = ‘restart_apache_gracefully'” where true – Apache graceful restart is enaSkip - to - content - Contact - us: - +34 - 944 - 58 - 06 - 58 - Plesk - Partner - Program - Plesk - Lifecycle - Policy - Blog - Contact - us - Plesk - 360 - Menu - Contact - us: - +34 - 944 - 58 - 06 - 58 - Plesk - Partner - Program - Plesk - Lifecycle - Policy - Blog - Contact - us - Plesk - 360 - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - Menu - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - Plesk - WordPress - Edition - Menu - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - Plesk - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Menu - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Exclusive - discounts - - benefits - and - exposure - to - take - your - business - to - the - next - level - Become - a - partner - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Menu - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Menu - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Menu - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Imunify360 - Pricing - Extensions - Help - Center - More - Careers - Events - Plesk - University - FREE - TRIAL - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Partner - Program - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Extension - Pricing - Extensions - Help - center - More - Careers - Events - Webinars - Plesk - University - Blog - Plesk - Partner - Program - Contact - Us - FREE - TRIAL - Menu - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Partner - Program - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Extension - Pricing - Extensions - Help - center - More - Careers - Events - Webinars - Plesk - University - Blog - Plesk - Partner - Program - Contact - Us - FREE - TRIAL - Knowledge - Base - How - to - enable/disable - Apache - graceful - restart - in - Plesk - apachedatabasehttpplesk - for - linuxplesk - obsidian - Question - How - to - enable/disable - graceful - restart - for - Apache - in - Plesk? - How - to - make - Apache - reload - instead - of - restarting - when - applying - settings - in - Plesk? - Answer - Note: - Graceful - restart - for - Apache - is - enabled - by - default - on - all - new - Plesk - Obsidian - installations. - Enabling/disabling - graceful - restart - for - Apache - in - Plesk - Obsidian - Log - in - to - Plesk. - Go - to - Tools - & - Settings - > - Apache - Web - Server. - Enable/disable - the - Apache - graceful - restart - option - and - apply - the - changes. - Enabling/disabling - graceful - restart - for - Apache - in - Plesk - Onyx - To - enable - Apache - graceful - restart - - set - the - restart_apache_gracefully - parameter - to - true - in - the - psa.misc - table: - Connect - to - the - Plesk - server - via - SSH. - For - security - reasons - - create - a - dump - of - the - Plesk - database: - # - plesk - db - dump - psa - > - psa_backup.$(date - +%F_%R).sql - Run - the - following - command: - To - enable - Apache - graceful - restart - # - plesk - db - “INSERT - INTO - psa.misc - VALUES - (‘restart_apache_gracefully’ - - ‘true’)” - If - restart_apache_gracefully - already - exists - (the - command - above - fails - with - “Duplicate - entry”) - in - the - psa.misc - table - - run: - # - plesk - db - “UPDATE - psa.misc - SET - val=’true’ - WHERE - param - = - ‘restart_apache_gracefully'” - To - disable - Apache - graceful - restart - # - plesk - db - “UPDATE - psa.misc - SET - val=’false’ - WHERE - param - = - ‘restart_apache_gracefully'” - Check - Apache - graceful - restart - status - with - the - command: - # - plesk - db - “select - * - from - psa.misc - WHERE - param - = - ‘restart_apache_gracefully'” - where - true - - Apache - graceful - restart - is - ena -