Wordpress installation problem: missing the MySQL extension?

During a new installation of WordPress I get the following message: “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”

I specify that the PHP-Mysqlnd library is installed .

System:
CentOS Linux 8.2.2004
Webmin 1,953
Virtualmin 6.10
Nginx
PHP 7.2

Log error Nginx:

[error] 19696 # 0: * 16 FastCGI sent in stderr: “PHP Warning: Use of undefined constant WP_CONTENT_DIR – assumed ‘WP_CONTENT_DIR’ (this will throw an Error in a future version of PHP) in / home / myvideoimage / public_html / wp -includes / load.php on line 141 “while reading response header from upstream, client: 192.168.1.12, server: myvideoimage.com, request:” GET /wp-admin/install.php HTTP / 1.1 “, upstream:” fastcgi : // unix: /var/php-nginx/159611529162207.sock/socket: “, host:” 192.168.1.13 ”
2020/08/01 09:44:09 [error] 19696 # 0: * 16 FastCGI sent in stderr: “PHP Warning: Use of undefined constant WP_CONTENT_DIR – assumed ‘WP_CONTENT_DIR’ (this will throw an Error in a future version of PHP ) in /home/myvideoimage/public_html/wp-includes/load.php on line 141 “while reading response header from upstream, client: 192.168.1.12, server: myvideoimage.com, request:” GET / wp-admin / install. php HTTP / 1.1 “, upstream:” fastcgi: // unix: /var/php-nginx/159611529162207.sock/socket: “, host:” 192.168.1.13 ”

Do you have any idea about the problem and how to solve it?
I tried to insert the line: define (‘WP_CONTENT_DIR’, ABSPATH. ‘Wp-content’);
at the end of wp-config.php, but it doesn’t work.

Thank you very much.

You’re missing the php-mysql package; “dnf install php-mysql” or equivalent. Also, the error you posted seems unrelated to the issue you have with the mysql library.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.