Skip to main content

PHP 8.1 Won't Load any PHP scripts

Comments

10 comments

  • kodeslogic
    Try to reinstall the php8.1 and its extension from EasyApache 4
    0
  • Michael Legg
    Thanks for the idea. I've done that, now interestingly, 80% of my sites are down whether they run 7.4 nor 8.1. I can get static html pages to load from external domains though. This is bizarre! I'm still faced with the problem of finding out what the problem is without having any meaningful error messages, but I'm wondering if there's a problem in the Apache config files.
    0
  • Michael Legg
    Okay ... I found the error ... PHP Fatal error: Unable to start standard module in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php74 PHP Fatal error: Unable to start standard module in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php81 No idea why it does this on some sites and not others, or what to do about it, but I'll just keep Googling.
    0
  • kodeslogic
    I would suggest you open a ticket to the .
    0
  • Michael Legg
    I blew away both PHP 7.4 and 8.1 and went back to 7.3 and now it all works fine. Ah .... the eternal conundrum ... do I want security or for things to actually work ?
    0
  • Michael Legg
    I think I should change the title of this thread to "Easy Apache Doesn't Install PHP 7.4+ Properly". After rolling back to 7.3 which worked perfectly, I thought I'd try 7.4 on it's own because I speculated that having multiple version was the problem. Alas, even on it's own 7.4 did not work. The bottom line is that I still need to upgrade to al least 7.4 to ensure security patches are released. Is there a way I can do this without using Easy Apache or will that break cPanel?
    0
  • cPRex Jurassic Moderator
    There's a large number of users with PHP 7.4, so it sounds like something specific to your machine. Could you submit a ticket to our team and then post that ticket number here so I can follow along?
    0
  • Michael Legg
    I rebooted the server and was able to install PHP 7.4 and all sites are running on it now. The problem was that there were updates that required a reboot in order to complete their installation and I didn't know because in the new interface the notifications are hidden whereas in the old interface there was a big message displayed at the top of the screen that the server needed a reboot. Now that I know this, I'll have to regularly check the notifications to see if a reboot is required. (After using the old interface for 20 years, it takes old guys like me a while to get used the new-fangled stuff)
    0
  • cPRex Jurassic Moderator
    I'm glad you were able to get the issue resolved. I believe the issues mentioned here would also help with the visibility of the reboot notifications:
    0
  • InternetTim
    One thing that I noticed on my server, was a lot of clients are using templates for their WordPress, and they are only able to go up to PHP 7.4 at the time I wanted to upgrade to PHP 8.1. So I have to wait, and do more research for what they are using (which takes a lot of man power searching). Luckily I can only update a few at a time, until these other companies, get it to groove!
    0

Please sign in to leave a comment.