Ea-php72 doesn't update suphp.conf
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
I followed the error back through the configuration files and found that this line was missing from /etc/suphp.conf
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.
[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
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.
-
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. 0 -
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? 0 -
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.0 -
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 php720 -
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.0 -
Hello @cPanelMichael Apologies for no response for such a long time. All issues are fixed. 0
Please sign in to leave a comment.
Comments
6 comments