Check which PHP script is running command

maverick23

Well-Known Member
Feb 23, 2005
92
0
156
cPanel Access Level
DataCenter Provider
Hello Everyone.

since Easy apache is there in production i have few issues.

Earlier if i wanted to check which PHP script is running i coud easily to

ps -ef |grep php

it used to give me the results something like -

Code:
USERNAME 19114 18772  0 18:47 ?        00:00:00 /usr/bin/php /home/USERNAME/public_html/index.php
USERNAME 20096 20014  0 18:48 ?        00:00:00 /usr/bin/php /home/USERNAME/public_html/index.php
USERNAME 20713 20025  0 18:49 ?        00:00:00 /usr/bin/php /home/USERNAME/public_html/index.php
USERNAME 21806 20957  0 18:51 ?        00:00:00 /usr/bin/php /home/USERNAME/public_html/index.php
USERNAME 22695 22489  0 18:53 ?        00:00:00 /usr/bin/php /home/USERNAME/public_html/index.php
and now when i run the same command all i get is :-

Code:
USERNAME 40669  40039 37 18:57 ?        00:00:02 /opt/cpanel/ea-php56/root/usr/bin/php-cgi
USERNAME 40674  40025 67 18:57 ?        00:00:03 /opt/cpanel/ea-php56/root/usr/bin/php-cgi
USERNAME 40681  37776 34 18:57 ?        00:00:01 /opt/cpanel/ea-php56/root/usr/bin/php-cgi
USERNAME 40683  40437 41 18:57 ?        00:00:00 /opt/cpanel/ea-php56/root/usr/bin/php-cgi
how can i get the results i used to get earlier?

Thank You,
Rajat
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello @maverick23,

Are you still facing this issue? If so, please post the output from the following command:

Code:
/usr/local/cpanel/bin/rebuild_phpconf  --current
Thank you.
 

maverick23

Well-Known Member
Feb 23, 2005
92
0
156
cPanel Access Level
DataCenter Provider
Hello Michael,

Thank you for your response.

I still have the same requirement/issue.

Please find the below result.

Code:
[[email protected] ~]# /usr/local/cpanel/bin/rebuild_phpconf  --current
DEFAULT PHP: ea-php56
ea-php55 SAPI: cgi
ea-php56 SAPI: cgi
ea-php70 SAPI: cgi
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

This functionality is enabled by default when using suPHP with the "full_php_process_display" option:

full_php_process_display When you set this value to true, the mod_suphp module executes PHP scripts in a way that displays both the PHP interpreter and the script's file name in the process list. To hide the script's file name and improve security, set this value to false. true
This is documented at:

PHP Handlers - EasyApache 4 - cPanel Documentation

Were you previously using suPHP?

Thank you.