Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Jurgis Posted December 29, 2020 Posted December 29, 2020 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?
Morrigan Posted December 29, 2020 Posted December 29, 2020 500 errors are server side errors. What does your error log say? Jurgis 1
Jurgis Posted December 29, 2020 Author Posted December 29, 2020 [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'
Stuart Silvester Posted December 29, 2020 Posted December 29, 2020 Your new PHP version is missing the mbstring extension, it may be missing more too. I would recommend running the compatibility checker - Note: PHP 8.0 is not supported at this time. Meddysong and Jurgis 1 1
Jurgis Posted December 29, 2020 Author Posted December 29, 2020 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.
Jurgis Posted December 29, 2020 Author Posted December 29, 2020 While this version is compatible, we recommend version 5.6.2 or above... If v8.0 for php is not supported, then what is highest supported (recommended) for MySQL/MariaDB?
MEVi Posted January 24, 2021 Posted January 24, 2021 You tried to disable HTACCESS ? About database you have change to InnoDB
Jurgis Posted January 27, 2021 Author Posted January 27, 2021 On 1/24/2021 at 5:36 AM, MEVi said: You tried to disable HTACCESS ? About database you have change to InnoDB Problem solved. PHP version was missing the mbstring extension. MEVi 1
Recommended Posts