I do have a high CPU utilization PhP Process. This process in turn seem to invoke mysql and both processes together are using all the CPU cores and RAM
using
ps aux | grep php , i could get the filename and location. i.e;
/usr/bin/php /path/to/index/file/index.php
I cannot remove the index.php as this file is required to run the website.
I tried changing index.php to home.php and did corresponding changes to website/htaccess.
After this i get
/usr/bin/php home.php for ps aux | grep php
It seems some script has been written to hit the website's index file but am not able to find which script it is.
I searched the entire machine using sudo find . | xargs grep '/usr/bin/php' but no luck yet.
So my question is how i can find the script (if that is the case) that is executing '/usr/bin/php index.php'
I appreciate any input on this.