Your PHP installation appears to be missing the MySQL extension which is require
-
I launched an Amazon EC2 instance running Ubuntu 22.04. I installed apache2 and PHP 8.1 and MariaDB 10.6.11 and also installed php-mysql. I have noticed there is no mysql section on the output from phpinfo().
In MariaDB I created a database called wp and a user called wpuser with all privileges. If I run SHOW GRANTS as wpuser one of the output lines is (bacticks converted to single quotes):
GRANT ALL PRIVILEGES ON 'wp'.* TO 'wpuser'@'localhost'
I have put the contents of WordPress directory (version 6.1.1) into /var/www/html. I created config.php and edited it to contain the DB_NAME, DB_USER, DB_PASSWORD and DB_HOST. When I visit that page from a browser I get a web page with the message:
Your PHP installation appears to be missing the MySQL extension which is require
.
It would be great to have some pointers as to what to do to troubleshoot this. I have been confused by the suggestions I have seen on google especially about whether php-mysql is necessary or not.
- You must be logged in to reply to this topic.