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

lsepolis

Member
Nov 8, 2019
5
0
1
Polis, Cyprus
cPanel Access Level
Root Administrator
I had:
PHP Version 7.4.33 and WordPress 5.9.5
Updated WP 6.1.1
>>>
Updated to PHP 8.0.25
Success: Successfully applied PHP version “PHP 8.0 (ea-php80)” to the selected domain.
>>>
PHP Version 8.0.25
>>>
I have gone to the WP home Blog home page and:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Reverted to PHP Version 7.4.33
then all back, all OK
Where is the problem?

Is the screenshot attached of any help?
 

Attachments

quietFinn

Well-Known Member
Feb 4, 2006
1,894
463
438
Finland
cPanel Access Level
Root Administrator
You can install php-mysqlnd extension for PHP 80 in EasyApache.
 

Leonidas Savvides

Well-Known Member
May 10, 2016
121
5
68
Cyprus
cPanel Access Level
Root Administrator
1
Choose Customize from: 2022-12-05_14-42-42.png
2
Search "php-mysqlnd" at: 2022-12-05_14-35-06 (2).png
3
click Next+...Next+... to reach: 2022-12-05_14-39-23.png
4
Finally press provision at: 2022-12-05_14-40-12.png

This to do????
 

Attachments

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
558
257
138
IN
cPanel Access Level
Root Administrator
Go for Currently Installed Packages >> Customize >> PHP extensions >> php80-php-mysqlnd
 

Leonidas Savvides

Well-Known Member
May 10, 2016
121
5
68
Cyprus
cPanel Access Level
Root Administrator
Go for Currently Installed Packages >> Customize >> PHP extensions >> php80-php-mysqlnd
I installed the php80-php-mysqlnd success...
and
I tried but got "...has a critical error..." when switched to the PHP 8.0.x
link to:

see attached screenshot

well???
 

Attachments

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
558
257
138
IN
cPanel Access Level
Root Administrator
Do you see any errors in the error_log file?
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
558
257
138
IN
cPanel Access Level
Root Administrator
Website error_log file is located at:

Code:
/home/USERNAME/public_html/error_log
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
463
438
Finland
cPanel Access Level
Root Administrator
There is also another PHP error log in the wp-admin directory, worth checking.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
463
438
Finland
cPanel Access Level
Root Administrator
There are no passwords in error logs.

Those logs can be big, no need to show more than like 50 last lines.
 

Leonidas Savvides

Well-Known Member
May 10, 2016
121
5
68
Cyprus
cPanel Access Level
Root Administrator
[[email protected] wp-admin]$ ls | grep .log
error_log
[[email protected] wp-admin]$ tail error_log
#1 /home/lscom-xyz/public_html/blog/wp-settings.php(447): include_once('/home/leonidass...')
#2 /home/lscom-xyz/public_html/blog/wp-config.php(103): require_once('/home/leonidass...')
#3 /home/lscom-xyz/public_html/blog/wp-load.php(50): require_once('/home/leonidass...')
#4 /home/lscom-xyz/public_html/blog/wp-admin/admin.php(34): require_once('/home/leonidass...')
#5 /home/lscom-xyz/public_html/blog/wp-admin/update-core.php(10): require_once('/home/leonidass...')
#6 {main}
thrown in /home/lscom-xyz/public_html/blog/wp-content/plugins/rpx/rpx_m.php on line 98
[06-Dec-2022 08:42:43 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; RPX_Widget has a deprecated constructor in /home/lscom-xyz/public_html/blog/wp-content/plugins/rpx/rpx_v.php on line 1925
[06-Dec-2022 08:42:50 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; RPX_Widget has a deprecated constructor in /home/lscom-xyz/public_html/blog/wp-content/plugins/rpx/rpx_v.php on line 1925
[06-Dec-2022 18:22:28 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; RPX_Widget has a deprecated constructor in /home/lscom-xyz/public_html/blog/wp-content/plugins/rpx/rpx_v.php on line 1925
[[email protected] wp-admin]$


soon the:
/home/USERNAME/public_html/error_log
because needs admin permissions

can you make any conclusion?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
463
438
Finland
cPanel Access Level
Root Administrator
Seems RPX_Widget is not compatible with PHP 8.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
558
257
138
IN
cPanel Access Level
Root Administrator
Yes, try disabling that plugin.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
463
438
Finland
cPanel Access Level
Root Administrator
tail -n 100 error_log shows 100 last lines of error_log

In fact you can delete the file, and try again, and get the errors in the log file.
 

Leonidas Savvides

Well-Known Member
May 10, 2016
121
5
68
Cyprus
cPanel Access Level
Root Administrator
Temp
Can I rename this log file, so as the system: LAMP CentOS Apache PHP MySQL WordPress

creates a new log file auto?
And view this new file,... after some time
Then, can delete the huge Logs file ...

well?