• 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.

    • This topic was modified 4 years, 3 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 1 replies (of 1 total)
  • Moderator Yui

    (@fierevere)

    永子

    PHP 7 does not have mysql extension, its been long time deprecated and finally been removed in PHP 7

    Use mysqli instead.

    PHP-Mysqlnd library is installed.

    Its only backend. for “mysql”, “mysqli” and “mysql pdo”
    Having only mysqlnd enabled is not enough.

    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’);

    What are you trying to do with this? Whats the goal?

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress installation problem: missing the MySQL extension ??’ is closed to new replies.