1

I recently upgraded PHP5.X to PHP7.3 on my Pi 3 and also moved to Raspbian Buster from Jessie.

Now I get this message when I try to open the port 80 where I could earlier see my Wordpress site.

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

I use Apache and MariaDB and these are working. I installed Php7.3-mysql as well.

PHP is working correctly. I created a test.php file with this content <?php echo “hello world”; ?> and it works on the browser.

Please help.

2

With Raspbian Buster you will find the needed sql extension in its repository with apt list *php*sql*. Just install it with:

rpi ~$ sudo apt install php7.1-mysql
| improve this answer | |
  • I updated PHP to 7.3 now and installed php7.3-mysql. However, not getting the the issue fixed. – Kangkan Apr 20 at 19:18
1

You need to update WordPress itself to PHP7. The old MySQL plugin doesn't support PHP7, and you should use MySQLi or PDO_MySQL instead.

| improve this answer | |
  • thanks. Can you provide some pointers on how to do? I downloaded the latest Wordpress, but it too is not working. – Kangkan Apr 22 at 7:19
0

So, how I resolved it!

I removed Wordpress, all bits of php (purge php*) and then started from scratch after a reboot. It worked fine.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.