• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue php-cgi.exe used high CPU usage

Khairul

New Pleskian
We are running plesk on windows. We found that php-cgi.exe was used almost 100% cpu usage. We have installed antivirus on the server and when we run the scanning, it will quarantine php-cgi.exe files. We are suspect that php-cgi.exe has been compromise. Is there any other way to revert back with clean php-cgi.exe because we have a few domain that running on this server. Once antivirus quarantine that files, pages will showed 500 ERROR.

Hope somebody can guide me to a fix it.

Thanks..
 
For example, file C:\Program Files (x86)\Plesk\Additional\PleskPHP72\php-cgi.exe is a part of Plesk PHP7.2 component. That's mean that you can just reinstall this component through Plesk installer.
 
you should open Task Manager in Windows, go to details tab, and then take a look at column "User name" for php-cgi.exe process that consumes 100% CPU.
Based on this user you can find then subscription which consumes most CPU time. php-cgi.exe is just PHP worker, it will eat 100% of CPU if PHP script on domain is written this way. Most probably, the problem is not with php-cgi.exe itself but with bad scripts located on some of domains.

you can then limit this IIS pool to have limited amount of CPU and thus heal your server.
 
One more thing:
If you are using Plesk 17.8, you can try to do the following. Install "Repair kit" extension for Plesk. Then in Tools&Settings-> Assistanceand troubleshooting section you can see Process list screen, where you can see the same information already splitted by domains. You can check which domain consumes most CPU time.
 
you should open Task Manager in Windows, go to details tab, and then take a look at column "User name" for php-cgi.exe process that consumes 100% CPU.
Based on this user you can find then subscription which consumes most CPU time. php-cgi.exe is just PHP worker, it will eat 100% of CPU if PHP script on domain is written this way. Most probably, the problem is not with php-cgi.exe itself but with bad scripts located on some of domains.

you can then limit this IIS pool to have limited amount of CPU and thus heal your server.

Yes, we found one of the domain used php-cgi.exe with high cpu. Once we disable it, CPU usage totally reduce. Probably bad script. Still looking on this..thanks a lot.
 
Back
Top