Jump to content

500 error when change PHP version

Recommended Posts

Hello, any ideas what could cause 500 error when i am changing php version to 7.3 or higher?
Forum runs on CentOS 8, Webmin/Virtualmin. By default highest php version was 7.2.24 and i installed 7.3, 7.4 and 8.0

dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm && dnf clean all

dnf -y install php73-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd}
dnf -y install php74-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd}
dnf -y install php80-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd}

But forum runs only on default 7.2.24. I am new to CentOS, Webmin/Virtualmin, so maybe there are some settings i should change after installing PHP?

Link to comment
Share on other sites

[Tue Dec 29 13:43:37.583029 2020] [proxy_fcgi:error] [pid 98840:tid 140551026292480] [client xx.xxx.xxx.xxxx:62371] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxxxx/public_html/init.php:541\nStack trace:\n#0 /home/xxxxxxxx/public_html/init.php(1532): IPS\\IPS::init()\n#1 /home/xxxxxxxx/public_html/index.php(12): require_once('/home/xxxxxxxx...')\n#2 {main}\n  thrown in /home/xxxxxxx/public_html/init.php on line 541\n'

Link to comment
Share on other sites

Installed mbstring extension and now forum works. Thank you.

Had to run: dnf install php-mbstring

And then:   dnf install php72-php-mbstring for 7.2 php73 for 7.3 and so on

And here is result from checker and seems that everything else is fine.





Link to comment
Share on other sites

  • 4 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...