Skip to main content

Error when switching to php7.2

Comments

6 comments

  • Eminds
    Check out the below thread, should be helpful
    0
  • cPanelLauren
    Hi @AndrewSimm84 Your profile indicates you're a website owner do you have root access to the server? If not you will need to contact your hosting provider to assist you further with this. Based on the error you're getting I believe the php7.2 package needs to be reinstalled though I wouldn't be able to confirm that unless you've got root. If you do can you please run the following via SSH: /usr/local/cpanel/bin/rebuild_phpconf --current
    Thanks!
    0
  • AndrewSimm84
    Hi @AndrewSimm84 Your profile indicates you're a website owner do you have root access to the server? If not you will need to contact your hosting provider to assist you further with this. Based on the error you're getting I believe the php7.2 package needs to be reinstalled though I wouldn't be able to confirm that unless you've got root. If you do can you please run the following via SSH: /usr/local/cpanel/bin/rebuild_phpconf --current
    Thanks!

    I do have root access to the server. I have already tried reinstalled php 7.2 and while it installs fine I still have the same issues. I ran the command you suggested and got the following: [root@host /]# /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php71 ea-php71 SAPI: cgi Cpanel::Exception::MissingParameter/(XID gsq64h) Provide the "type" parameter for the "Cpanel::WebServer::Supported::apache::make_handler" function. at /usr/local/cpanel/Cpanel/WebServer/Supported/apache.pm line 222. Cpanel::WebServer::Supported::apache::make_handler(Cpanel::WebServer::Supported::apache=HASH(0x2ddc778), "lang", Cpanel::ProgLang::Supported::php=HASH(0x2d0dfa8), "package", "ea-php72", "type", undef) called at /usr/local/cpanel/bin/rebuild_phpconf line 186 bin::rebuild_phpconf::ea4::do_current(HASH(0x26e7ac0), Cpanel::ProgLang::Supported::php=HASH(0x2d0dfa8), Cpanel::WebServer::Supported::apache=HASH(0x2ddc778)) called at /usr/local/cpanel/bin/rebuild_phpconf line 218 bin::rebuild_phpconf::ea4::run(ARRAY(0x2100990)) called at /usr/local/cpanel/bin/rebuild_phpconf line 395
    0
  • cPanelLauren
    Hi @AndrewSimm84 Based on this error it looks like php71 is the issue not php72. Can you try running the following and let me know if it persists? yum reinstall ea-php71*
    Thanks!
    0
  • AndrewSimm84
    Hi @AndrewSimm84 Based on this error it looks like php71 is the issue not php72. Can you try running the following and let me know if it persists? yum reinstall ea-php71*
    Thanks!

    I tried running the command you mentioned and I still have the same issue.
    0
  • cPanelLauren
    The output would have been helpful in this circumstance but it may be best we have a closer look. Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!
    0

Please sign in to leave a comment.