• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved php sites with mysqlnd white empty page output

Onkeltom01

Basic Pleskian
CentOS Linux 7.9.2009
Plesk Obsidian Version 18.0.38 Update #2

Hi all,
I have a big problem with one of my Plesk Servers which I can't fix over days.
I updated MariaDB from version 5.5.68 (original CentOS 7 Release) to 10.5.12 with the mariadb-10.5-upgrade.sh from Plesk. After the Update I had to add sql_mode = "" under [mysqld] in server.cnf to get rid of the strictmode error message. All worked fine, several restarts of the MariaDB Service, but no reboot of the complete Server right now.
5 days later I updated Plesk to 17.0.38 Update #1 and also some Updates from CentOS including a Kernel Update

Code:
Sep 08 20:19:03 Updated: plesk-dns-bind-driver-18.0-2.centos.7+p18.0.38.1+t210906.1809.x86_64
Sep 08 20:53:30 Updated: kernel-tools-libs-3.10.0-1160.42.2.el7.x86_64
Sep 08 20:53:35 Updated: kernel-tools-3.10.0-1160.42.2.el7.x86_64
Sep 08 20:53:39 Updated: grafana-8.1.3-1.x86_64
Sep 08 20:54:01 Installed: kernel-3.10.0-1160.42.2.el7.x86_64
Sep 08 20:54:06 Updated: python-perf-3.10.0-1160.42.2.el7.x86_64
Sep 08 20:54:15 Updated: kernel-headers-3.10.0-1160.42.2.el7.x86_64
After a Server reboot I got the Error Message:
"mysqli_real_connect(): Headers and client library minor version mismatch. Headers:50550 Library:100148"
Some google search, the solution is to change php from mysql to mysqlnd.
I removed php-mysql from PHP 5.4.16 (from OS Vendor) with all dependecies und reinstalled php-mysqlnd with the depended Modules which were deinstalled before.
After that my old vB forums installations doesn't work anymore and I get a blank, white page while opening the index.php page in a browser.

I tried to change to other php Versions 5.4.45 also 5.6.40 (from Plesk) but no success, I changed also from FPM to Fast CGI and CGI, but the output was everytime the same white and empty page. I didn't find a entry in a error log which belongs to this problem. Html Files are working, also php Files which are not working with a (mysql) Database.

Several reboots of the server didn't fix that problem at all.

I Installed a CentOS7 VM on my PC on vmware Workstation with php 5.4.16 and mariadb 5.5.68 from Vendor and copied the old vBulletin Forums from the webserver to this lokal installation where all runs as it should, afterwards I updated the mariadb to 10.5.12 without problems, changed to php-mysqlnd, reboots the VM, and the forums works like a charme. Then I installed several php FPM Versions (5.4.45, 5.6.40) all with php-mysqlnd to this VM and tested the forums with this php fpm versions and all worked as it should. No Problem with database or php or vb Forum Software, all worked fine.

I have no ideas anymore how to fix this problem. Other domains on this server with higher php Versions like 7 and 8 are working with mysql databases on this server like a charme. The problem seems to be only with the php5.x domains.

any ideas or tips to fix this?

Best Regards from Germany
Tom
 
Problem fixed!
It was my old server.cnf from mariadb 5.8 which makes the trouble. After using a empty on from 10.5 all forums worked again.
 
Back
Top