Unable to set PHP 7.4 Handler
Hello,
I am unable to set any PHP Handler for PHP 7.4 (ea-php74), when I attempted to, I am presented with the following error
I attempted to use the following code from The rebuild_phpconf Script - Version 74 Documentation - cPanel Documentation
and recieved the following error
. I have tried suPHP, LSAPI and CGI, no difference; I have reinstalled the PHP version via EasyApache and terminal and forced updated the system, no change. PHP 7.2 and 7.3 both work fine, however, 7.4 does not work.
API failure: (XID p3u2nt) Provide the "type" parameter for the "Cpanel::WebServer::Supported::apache::make_handler" function.I attempted to use the following code from The rebuild_phpconf Script - Version 74 Documentation - cPanel Documentation
/usr/local/cpanel/bin/rebuild_phpconf --ea-php74=cgiand recieved the following error
(XID 2znnrp) Provide the "type" parameter for the "Cpanel::WebServer::Supported::apache::make_handler" function. at /usr/local/cpanel/bin/rebuild_phpconf line 168.. I have tried suPHP, LSAPI and CGI, no difference; I have reinstalled the PHP version via EasyApache and terminal and forced updated the system, no change. PHP 7.2 and 7.3 both work fine, however, 7.4 does not work.
-
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: cgi0 -
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 2460 -
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 -
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 -
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 -
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.
Comments
6 comments