- Plesk for Linux
Websites become temporarily unavailable when applying configuration changes. How to set up Apache restart every day at a certain time?
Plesk does not have a direct functionality to schedule Apache restarts at a particular time of the day.
Apply one of the following alternatives:
- Configure Apache graceful restart
- Set Apache restart interval to 0 in Tools & Settings > Apache Web Server
- Install Watchdog extension to monitor Apache
Set Apache restart interval to
9999in Tools & Settings > Apache Web Server
Go to Tools & Settings > Schedule Tasks and add the task, for example, for CentOS/RHEL/CloudLinux:
Note: for Debian/Ubuntu, the command should be "/usr/sbin/service apache2 restart".
Note: In case the first option is applied, the websites will always stay accessible. However, in certain environments, Apache graceful restart may not be stable. For this reason, Watchdog service monitor should be installed.
Please sign in to leave a comment.