Skip to main content

Determine which PHP script running from PID?

Comments

7 comments

  • cPanelMichael
    Hello, The script's file name is not listed, but you should be able to identify the username of the account based on what's listed on the executable line. From there, you could review the files under the account to see which PHP scripts are installed. You may also find the domain access logs for the account helpful when checking to see which PHP files were accessed. They are stored in the following directory:
    /var/log/apache2/domlogs/
    Thank you.
    0
  • Gojko
    Tnx for replay. Yes i have account name, but in log files are all php files of wordpress? i see literally every file for wordpress. so you say there is no chance to find out which file s running under that pid?
    0
  • cPanelMichael
    Hello, That functionality is exclusive to suPHP with the "full_php_process_display" setting in the /etc/suphp.conf file. Thank you.
    0
  • Gojko
    thank you, solved
    0
  • leonep
    @Gojko what was your solution? thanks
    0
  • Gojko
    as they say it is not possible
    0
  • leonep
    suphp nostalgic
    0

Please sign in to leave a comment.