• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

websrvmng not restarting apache gracefully

JP Kelly

Regular Pleskian
I am using WHMCS to create new domains in Plesk 10. When the domain is created via a php page form submission, the resulting page returns a "Server cannot be found" error. This seems to be because websrvmng is not gracefully restarting apache. Apache goes down for a brief amount of time and the response page for the domain creation script does not show up because Apache is down. This was not an issue in Plesk 8.6.

As a workaround I have disabled websrvmng because the domain creation script still modifies the Apache .conf files correctly, only Apache needs to be restarted manually. For me this is a better scenario than having my new clients be presented with a "server cannot be found" error.
 
Ok c'mon guys

This is really starting to become an issue!
Can someone from Parallels please acknowledge that this is something they are looking at?
 
Found a Fix on WHMCS forum

Someone posted this on the WHMCS forum and it worked for me.

I researched the purpose of websrvmng and it seems that it is only to give plesk the ability to call the httpd init script for start/stop/graceful/reload/and status.

Since the problem is that Plesk misues it to do hard restart s when we don't want hard restarts, I have replaced this with something that can only do graceful

So, replace your websrvmng with a perl script like this...

#!/usr/bin/perl
system("/etc/init.d/httpd graceful");

And of course chmod to 755 same persmissions and mode as previous websrvmng
 
I had the same issue, we ended up running whmcs under lighttpd - but that brought in some SSL conflicts
 
After upgrading to 10.3.1 apache restart is very slow and API with WHMCS is broken again.
Any ideas?
 
Back
Top