• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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