Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Ea-php72 doesn't update suphp.conf

Discussion in 'EasyApache' started by Krydos, Sep 18, 2017.

  1. Krydos

    Krydos Well-Known Member

    Joined:
    Jun 2, 2012
    Messages:
    48
    Likes Received:
    5
    Trophy Points:
    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.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,407
    Likes Received:
    1,953
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ad682005

    ad682005 Member

    Joined:
    Jan 8, 2018
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  4. ad682005

    ad682005 Member

    Joined:
    Jan 8, 2018
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  5. ad682005

    ad682005 Member

    Joined:
    Jan 8, 2018
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    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
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,407
    Likes Received:
    1,953
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice