Skip to main content

Unable to set PHP 7.4 Handler

Comments

6 comments

  • cPanelLauren
    Hello, Do you have the ea-php74 package as well as one of the suPHP, LSAPI or CGI packages installed on the server? What is the output of the following? /usr/local/cpanel/bin/rebuild_phpconf --current
    From my tests: /usr/local/cpanel/bin/rebuild_phpconf --ea-php74=cgi
    then # /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php74 ea-php56 SAPI: lsapi ea-php70 SAPI: lsapi ea-php71 SAPI: lsapi ea-php72 SAPI: lsapi ea-php73 SAPI: lsapi ea-php74 SAPI: cgi
    0
  • MWalton
    Hello, Do you have the ea-php74 package as well as one of the suPHP, LSAPI or CGI packages installed on the server? What is the output of the following? /usr/local/cpanel/bin/rebuild_phpconf --current
    From my tests: /usr/local/cpanel/bin/rebuild_phpconf --ea-php74=cgi
    then # /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php74 ea-php56 SAPI: lsapi ea-php70 SAPI: lsapi ea-php71 SAPI: lsapi ea-php72 SAPI: lsapi ea-php73 SAPI: lsapi ea-php74 SAPI: cgi

    I tried your command as requested and this was the outcome: [root@hub ~]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php73 ea-php72 SAPI: lsapi ea-php73 SAPI: lsapi Cpanel::Exception::MissingParameter/(XID ewsazp) Provide the "type" parameter for the "Cpanel::WebServer::Supported::apache::make_handler" function. at /usr/local/cpanel/Cpanel/WebServer/Supported/apache.pm line 223. Cpanel::WebServer::Supported::apache::make_handler(Cpanel::WebServer::Supported::apache=HASH(0x1818078), "lang", Cpanel::ProgLang::Supported::php=HASH(0x15539a8), "package","ea-php74", "type", undef) called at /usr/local/cpanel/bin/rebuild_phpconf line 194 bin::rebuild_phpconf::ea4::do_current(HASH(0x14c25c0), Cpanel::ProgLang::Supported::php=HASH(0x15539a8), Cpanel::WebServer::Supported::apache=HASH(0x1818078)) called at /usr/local/cpanel/bin/rebuild_phpconf line 226 bin::rebuild_phpconf::ea4::run(ARRAY(0xf7dd60)) called at /usr/local/cpanel/bin/rebuild_phpconf line 246
    0
  • cPanelLauren
    Interesting, thanks for running that. Will you try reinstalling php 7.4 with the following: yum -y reinstall ea-php74
    And let me know if the issue persists as well as what the output is for reinstalling.
    0
  • MWalton
    Interesting, thanks for running that. Will you try reinstalling php 7.4 with the following: yum -y reinstall ea-php74
    And let me know if the issue persists as well as what the output is for reinstalling.

    I tried and it completed successfully, however, it did not fix the error :confused:
    0
  • cPanelLauren
    Ok, it's possible we missed a step (meaning I missed a step) Do you see the following line in /etc/yum.conf
    plugins=1
    If not can you please add it then reinstall the php 7.4 package again and let me know if the issue persists?
    0
  • MWalton
    Ok, it's possible we missed a step (meaning I missed a step) Do you see the following line in /etc/yum.conf
    plugins=1
    If not can you please add it then reinstall the php 7.4 package again and let me know if the issue persists?

    This seems to have fixed the issue :D Thank you very much!!!
    0

Please sign in to leave a comment.