SOLVED Ea-php72 doesn't update suphp.conf

Krydos

Well-Known Member
Jun 2, 2012
50
8
58
cPanel Access Level
Root Administrator
Hey,

I just updated a few of our servers to include php 7.2. On one of them the new php version would only show 500 errors. Checking the logs I found
Code:
[Mon Sep 18 14:09:42.865056 2017] [:error] [pid 24861:tid 139805682243328] [client x.x.x.x:52532] SecurityException in Application.cpp:580: Handler not found in configuration
[Mon Sep 18 14:09:42.865184 2017] [:error] [pid 24861:tid 139805682243328] [client x.x.x.x:52532] Caused by KeyNotFoundException in Configuration.cpp:280: Handler "application/x-httpd-ea-php72" not found
[Mon Sep 18 14:09:42.865214 2017] [core:error] [pid 24861:tid 139805682243328] [client x.x.x.x:52532] End of script output before headers: phpinfo.php
I followed the error back through the configuration files and found that this line was missing from /etc/suphp.conf
Code:
application/x-httpd-ea-php72 = "php:/opt/cpanel/ea-php72/root/usr/bin/php-cgi"
I uninstalled ea-php72 fully, and reinstalled it and the rpm still didn't update the suphp.conf file correctly. This only happened on one server though so it doesn't happen all of the time. Hopefully this bug report helps the developers or anyone who might end up with the same error as I did.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Hello,

The following case is planned for inclusion in an EasyApache 4 maintenance release on 09-20-2017 and will address the issue you have reported:

EA-6815 - Add support for PHP 7.2 for mod_suphp

Thank you.
 

ad682005

Member
Jan 8, 2018
14
2
3
India
cPanel Access Level
Website Owner
I have the same issue. How come? 2017 maintenance release would have been released long time back?

I am on Centos 7.3
WHM 62 (build 24)

How can I get this resolved?
 

ad682005

Member
Jan 8, 2018
14
2
3
India
cPanel Access Level
Website Owner
I have the same issue. How come? 2017 maintenance release would have been released long time back?

I am on Centos 7.3
WHM 62 (build 24)

How can I get this resolved?
ADDENDUM TO THE ABOVE ISSUE:

I had manually added the entry under handlers section in suphph.conf application/x-httpd-ea-php72 = "php:/opt/cpanel/ea-php72/root/usr/bin/php-cgi"

After that when I access http://IP Address/~ad682005/anil_info.php

I was getting the output properly without any Error 500. Which means the primary issue as above was the the above entry was not getting automatically configured into suphp.conf

I am now however facing another issue.

When I access http://IP Address/~ad682005/anil_info.php - I am getting 404 Not Found Error. Plus if I check in apache error log or in suphp error log - there is no information at all. Where do I check? With 404 error I do not even know where to look and what to find as error and hence what to fix.
 

ad682005

Member
Jan 8, 2018
14
2
3
India
cPanel Access Level
Website Owner
ADDENDUM TO THE ABOVE ISSUE:

I had manually added the entry under handlers section in suphph.conf application/x-httpd-ea-php72 = "php:/opt/cpanel/ea-php72/root/usr/bin/php-cgi"

After that when I access http://IP Address/~ad682005/anil_info.php

I was getting the output properly without any Error 500. Which means the primary issue as above was the the above entry was not getting automatically configured into suphp.conf

I am now however facing another issue.

When I access http://IP Address/~ad682005/anil_info.php - I am getting 404 Not Found Error. Plus if I check in apache error log or in suphp error log - there is no information at all. Where do I check? With 404 error I do not even know where to look and what to find as error and hence what to fix.
OK The addendum issue is resolved. This was happening because I had enabled Apache mod_userdir Tweak. Once I disable - it works properly.

Which brings us back to the original issue - how to get the suphp.conf file entry for php72
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Which brings us back to the original issue - how to get the suphp.conf file entry for php72
I am on Centos 7.3
WHM 62 (build 24)
Hello @ad682005,

I've been unable to reproduce this behavior on a test environment using supported versions of cPanel & WHM. The version of cPanel & WHM installed on your system is at end-of-life status and no longer supported:

cPanel & WHM LTS Version 62 Now EOL | cPanel Newsroom

Can you upgrade this server to cPanel & WHM version 70 and let us know if the issue persists?

Thank you.