Determine which PHP script running from PID?
i need to find out which PHP script running but i have only PID. Here is CSF:
as you can see here is a problem process time which is too long i can kill this process but it start again and that is not solutions CentOS 7.3 server
Account: user
Resource: Process Time
Exceeded: 20101 > 2000 (seconds)
Executable: /home/virtfs/user/opt/cpanel/ea-php56/root/usr/bin/php-cgi
Command Line: /opt/cpanel/ea-php56/root/usr/bin/php-cgi
PID: 16659 (Parent PID:15287)
Killed: Noas you can see here is a problem process time which is too long i can kill this process but it start again and that is not solutions CentOS 7.3 server
-
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 -
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 -
Hello, That functionality is exclusive to suPHP with the "full_php_process_display" setting in the /etc/suphp.conf file. Thank you. 0 -
thank you, solved 0 -
@Gojko what was your solution? thanks 0 -
as they say it is not possible 0 -
suphp nostalgic 0
Please sign in to leave a comment.
Comments
7 comments