MariaDB version not recognised

As discussed in comments, the problem was a missing prce2 package which meant preg_match(), used by $wpdb->db_version() to parse the MySQL version number out of SELECT VERSION(), didn’t work. Solved by sudo yum install pcre2

How to install WordPress alongside conventional pages on a shared hosting system

Why not manually install WordPress in a subdirectory? I.e., example.com/wordpress/ With the file directory being something like: /public_html/wordpress/ That will leave the conventional PHP site at root. WordPress will generate an .htaccess file in /wordpress/ for permalinks. See https://developer.wordpress.org/advanced-administration/before-install/howto-install/#detailed-instructions

Uncaught Error: Undefined constant “WP_CONTENT_DIR”

Yes, this is a bug, but it appear only when the WP configuration is not finished. The error occurs on this line (in wp-includes/load.php) : if ( ! extension_loaded( ‘mysql’ ) && ! extension_loaded( ‘mysqli’ ) && ! extension_loaded( ‘mysqlnd’ ) && ! file_exists( WP_CONTENT_DIR . ‘/db.php’ ) ) { (…) This checks that mysql … Read more

tech