Check which PHP script is running command
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 -
and now when i run the same command all i get is :-
how can i get the results i used to get earlier? Thank You, Rajat
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 :-
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
-
Hello @maverick23, Are you still facing this issue? If so, please post the output from the following command: /usr/local/cpanel/bin/rebuild_phpconf --current
Thank you.0 -
Hello Michael, Thank you for your response. I still have the same requirement/issue. Please find the below result. [root@xxx ~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php56 ea-php55 SAPI: cgi ea-php56 SAPI: cgi ea-php70 SAPI: cgi0 -
Hello, This functionality is enabled by default when using suPHP with the "full_php_process_" 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.0
Please sign in to leave a comment.
Comments
3 comments