• Resolved k05tya

    (@k05tya)


    Has anyone tried to install WP 6.1.1 on CentOS 9 with MariaDB 10.5.16? It seems like install script fails to determine MariaDB version.
    (other sites using php and database seem to work fine)

    ==========================
    Requirements Not Met
    You cannot install because WordPress 6.1.1 requires MySQL version 5.0 or higher. You are running version .

    ==========================
    [root@controller ~]# mysql
    Welcome to the MariaDB monitor. Commands end with ; or \g.
    Your MariaDB connection id is 7
    Server version: 10.5.16-MariaDB MariaDB Server

    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

    Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.`

Viewing 7 replies - 1 through 7 (of 7 total)
  • Run phpinfo()

    Chances are MySQL will not be available in the running config.

    Having MySQL installed is not enough. You also need the MySQL driver for PHP to allow PHP scripts to make the database connection, and, crucially, this extension must be enabled in the running config.

    Running phpinfo() (either from the command line or preferably in a browser page) should show you the full PHP running environment.

    UPDATE:

    Sorry I missed this part: “(other sites using php and database seem to work fine)”.

    If these other sites are on the same server, then you have the PHP/MySQL connector working fine already. Sorry about that.

    I don’t run CentOS, but I run several WordPress 6.1.1 sites on Debian 11 with Mariadb 10.10 just fine.

    Thread Starter k05tya

    (@k05tya)

    You are probably thinking php-mysqlnd. Yes it’s installed. I confirmed phpinfo shows mysqlnd 8.0.20. It’s something else. Very strange.

    Thread Starter k05tya

    (@k05tya)

    I’ve just finished doing exactly the same steps on CentOS 8 (which installs Maria 10.3.28 by default) and WP works perfectly fine there. I use a script, so no chance for human error. The difference is versions, really…

    Following my massive goofing, I fired-up a CentOS9 VM to test this out.

    I’m no command-line ninja (less so a CentOS guy)… so I followed the step-by-step instructions here to manually prep the LAMP stack and here to manually install WordPress.

    Here’s the end result: WordPress installer asking for DB credentials to setup WordPress: http://65.109.186.211/

    (NB: This is a temp server that will self-destruct in a couple of hours)

    I use a script, so no chance for human error.

    But the humans who write the script do make errors? 😀

    In fact, it seems the check is being done by your script... and not WordPress.

    I may be wrong here… but to the best of my knowledge, the WordPress installer doesn’t run any such checks. As long as PHP runs, you’ll get the prompt to enter the database info (like my URL above)… and WordPress will only report an error if it’s unable to make the database connection. But WordPress doesn’t really check the environment ahead of this.

    So, chances are your script isn’t compatible with CentOS9.

    Thread Starter k05tya

    (@k05tya)

    The error happens on /wp-admin/install.php stage, not here. So give it DB creds, create the right wp-config.php and go to the next step. Are you going to get WP Welcome page with fields for Site name etc. or my error?

    The error happens on /wp-admin/install.php stage, not here. So give it DB creds, create the right wp-config.php and go to the next step.

    I just did that… way past that… all the way to the finished installation.

    And I didn’t encounter a single error.

    The live site is here: http://65.109.186.211/

    And below are screen grabs from the various steps in the installation.

    Thread Starter k05tya

    (@k05tya)

    Thank you for checking this for me. I really appreciate your time and help.
    I’ve done more poking around and ended up running “dnf update” which fixed the problem. So there was an old version of something in the original CentOS image.

    Also, I noticed that one of the articles mentioned says to install Developers tools on LAMP. This doesn’t seem to be necessary for LEMP, I’m able to get away with only 4 packages: nginx, php-fpm, php-mysqlnd and mariadb-server.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP 6.1.1 on CentOS 9 with MariaDB 10.5.16’ is closed to new replies.