Skip to main content

How to get files of function that php is executing (when I pgrep -ia php some is only "/opt/cpanel/ea-php80/root/usr/bin/php-cgi")

Comments

3 comments

  • Jintor
    I found this [CODE=bash]ps eax |grep php |grep -v grep|awk '{print $1 $8 $15 $19}'
    it shows PID - REDIRECT_SCRIPT_URL= ..... usefull stuff to know at least what php "could" have a bad infinite loop on the code....
    0
  • andrew.n
    You simply look into the content of the file (/home/stubfeed/public_html/templates/cron/scan/cron_central_sheraday.php) and review the code to understand what does it do exactly. You might need a developer to assist you with this though if you don't know PHP language.
    0
  • cPRex Jurassic Moderator
    @andrew.n - if I'm reading his question correctly, I think he's referring to the ones that don't list a "something.php" file after the /opt/cpanel..... command. If that is correct, your #2 investigation is the answer - your just seeing the parent PHP process waiting for a connection.
    0

Please sign in to leave a comment.