• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Any way to disable automatic apache restart in plesk?

J

JouniN

Guest
Sorry if I'm asking old, already answered question but did not find any info with the search on this.

I've been trying to find out a solution how to disable the automatic restart for apache in Plesk. Plesk panel only allows adjusting the restart period in:
Settings -> Apache restart interval

I want to make apache restart at certain times that suits me instead of timed restarts. Maybe setting the restart interval to a very big number (like a week or a month) and then handling restart via own cron script might do the trick but I'd like to know if there is an "official" way to disable the automated restart. I did not find it in documentation where Plesk figures the time when to restart apache, pid file timestamp maybe?

Adding a possibility to choose the time when Apache is restarted in Plesk would be handy. (like putting it in a cron script which can then be run when wanted instead of selecting an interval)
 
Try to play with restart_apache_interval in misc table.
 
Apache restart interval

Igor,

If we change the apache restart interval, will this affect the amount of time it takes apache to restart after a change is made? For example, after a domain is added.

Also, if the time is set to zero seconds, does that make apache not restart automatically on a schedule?

Thanks!

Try to play with restart_apache_interval in misc table.
 
It is just delay after config changes. F.e. changes in configs, then restart_apache_interval waiting and then apache restart. Restart will be performed immediately if it is 0.
 
Yep, setting it to 0 means that apache gets restarted after every change that affects webhosting.

I've set the value to 999999 (6digit max). Also I've noticed that restarting the server resets restart_apache_interval back to 86400.
 
Same problem

Hello. I'm new in Plesk and I have a same problem too.

From an administration panel what we created, if I add a new domain and hosting and etc. The webpage will generate some commands to run in shell.
First we will create an ftp user, after that create the subscription and we have some more commands after subscription. But after the subscription the apache will restart, and the program will exit. I need to run the subscription without apache restart.

How could I do this?

I1ve tried to set the apache restart interval to 3600, it means 1 our, if I know good, but it restarted immediately.

Please help me.
 
Back
Top