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

#1
I upgraded php7.3 to php7.4 but it shows "Your PHP installation appears to be missing the MySQL extension which is required by WordPress". I search solution on google, it happens because I didn't install the MySQL extension yet. then I run this

yum install lsphp74-mysqlnd. But Nothing change.

Here is my phpinfo https://rizazstories.id/phpinfo.php.


and it shows like this.

rizazstories mysql error.png
 

Cold-Egg

Administrator
#2
The PHP info page shows it's a PHP8.0 instead of 7.4, did you change the version? I also see mysqlnd is installed. Let us know if it is still not working.
 
#3
yes, I changed the version to 8.0 then I linked to the new PHP version and run this.

sudo ln -sf /usr/local/lsws/lsphp80/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp8

It worked. But I try to log in to my web, It keeps showing this.

Screenshot 2022-07-26 at 08.45.20.png

so, I attempt too many tutorials. Then now, it comes with a 503 error. Pls help me

Screenshot 2022-07-26 at 08.47.20.png
 

Attachments

Last edited:
#4
Hi, thank you for the fast response, I fixed it already.

I just forgot to link the web server that this is the new version of PHP with this

sudo ln -sf /usr/local/lsws/lsphp80/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp8.

Maybe the problem before is just my cache problem.
 
Top