carlita Hi aaPanel_Kern It is a Wordpress site with no plugins. I think it has to be something else. But I really don't know how to debug this. I want to update to PHP 8.1 in my production server, but first i have to make sure it works in this test sever. Thanks!
carlita aaPanel_Kern I think I found the problem, both the configuration file and configuration tab are empty. I uninstalled and intalled both with compiled and fast methods. What other thing could I try? Thanks! PS: This is the phpinfo
aaPanel_Kern Hello, Copy the php.ini shown here according to phpinfo to the corresponding path cp /www/server/php/81/etc/php.ini /usr/local/lsws/lsphp81/etc/php.ini cp /www/server/php/81/etc/php.ini /usr/local/lsws/lsphp81/etc/php/81/litespeed/php.ini
carlita aaPanel_Kern I did it and now those tabs show the values. But still shows "error establishing a database connection" I restarted the php 8.1 but nothing. I looked at that line in class-wpdb.php When I switch back to 8.0 or 7.4 everything works fine.
aaPanel_Kern carlita Hello, please check whether the mysql configuration of wp-config.php is correct?
carlita aaPanel_Kern same wp-config.php... with php 8.0 it works, with php 8.1 it does not. I will try one last thing, I want to change Local host for 127.0.0.1 How can I do that in the databases tab? thanks
carlita aaPanel_Kern So I changed define( 'DB_HOST', 'Localhost' ); to define( 'DB_HOST', '127.0.0.1' ); in my wp-config.php and everything works fine. 1) Is that a common issue with php 8.1? 2) Could this cause any kind of problem? Thanks!
carlita aaPanel_Kern thanks for the reply I tried in both contabo and Hostinger servers, both with ubuntu 20.04 Is it ok if I leave it like that? or could that bring problems in the future? Thanks!