How to get the correct file and not /opt/cpanel/ea-php56/root/usr/bin/php-cgi

tejli

Active Member
Aug 8, 2016
25
16
53
vienna
cPanel Access Level
Website Owner
Hello.

I moved my server to a new one and now am getting many of those when I click the Precess Manager:

/opt/cpanel/ea-php56/root/usr/bin/php-cgi

In the old server I was getting the right file path.

Any idea how to fix this?
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi,

Your new server appears to be running EA4. That php-cgi binary is the SCL version of php56, so you can run multiple versions of PHP on the same system. This is normal :)

Are you experiencing any issues?
 

tejli

Active Member
Aug 8, 2016
25
16
53
vienna
cPanel Access Level
Website Owner
Hi Jacob. Yes I do face issues because I dont know what file is causing the load so I can fix it.
In the old server in most times was showing php files that was making problems and after renaming them the load was normal again but now I see the same message for all. So there is no way to fix it?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hi Jacob. Yes I do face issues because I dont know what file is causing the load so I can fix it.
In the old server in most times was showing php files that was making problems and after renaming them the load was normal again but now I see the same message for all. So there is no way to fix it?
Hello,

The functionality you are referring to 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.

This is documented at:

PHP Handlers - EasyApache 4 - cPanel Documentation

Could you verify if you are using the same PHP handler as the previous server (e.g. suPHP)?

Thank you.
 

tejli

Active Member
Aug 8, 2016
25
16
53
vienna
cPanel Access Level
Website Owner
Hello,

The functionality you are referring to 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.

This is documented at:

PHP Handlers - EasyApache 4 - cPanel Documentation

Could you verify if you are using the same PHP handler as the previous server (e.g. suPHP)?

Thank you.

Sorry to bump it.

Where can I find and change that full_php_process_display? AM on Cloudlinux 7.x

Thank you
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Where can I find and change that full_php_process_display? AM on Cloudlinux 7.x
Hello,

suPHP configuration settings are stored in the following file as of EasyApache 4:

/etc/suphp.conf

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
It was True and changed to False but still am getting such filenames: /opt/cpanel/ea-php56/root/usr/bin/php-cgi
Hello,

You'd still see "/opt/cpanel/ea-php56/root/usr/bin/php-cgi" as the process name. It's the path to the PHP file that's hidden. Can you confirm the path to the PHP file itself still appears in the process list after restarting Apache?

Thank you.
 

tejli

Active Member
Aug 8, 2016
25
16
53
vienna
cPanel Access Level
Website Owner
Hello,

You'd still see "/opt/cpanel/ea-php56/root/usr/bin/php-cgi" as the process name. It's the path to the PHP file that's hidden. Can you confirm the path to the PHP file itself still appears in the process list after restarting Apache?

Thank you.
Yes as I have said before still appairs like this: /opt/cpanel/ea-php56/root/usr/bin/php-cgi.
Id like to see the real file here like it was in the old serever ex: username/public_html/file.php
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Id like to see the real file here like it was in the old serever ex: username/public_html/file.php
It's only possible when using suPHP as the PHP handler, and when full_php_process_display is set to "True" in the /etc/suphp.conf file. Are you sure suPHP is configured as the PHP handler for PHP version 5.6 on your system? PHP handlers are configured under the "PHP Handlers" tab in "WHM >> MultiPHP Manager".

Thank you.