ERROR [2] mysqli_connect(): (HY000/2002): Connection refused
Fatal error in line 9 of file /var/lib/security/lm_portali/backoffice/inc_mysql_lib.php, PHP 7.4.33 (Linux)
This is the debug trace

Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /var/lib/security/lm_portali/backoffice/inc_error_handler.php:69 Stack trace: #0 /var/lib/security/lm_portali/backoffice/inc_error_handler.php(83): print_debug_info() #1 [internal function]: myErrorHandler() #2 /var/lib/security/lm_portali/backoffice/inc_mysql_lib.php(9): mysqli_connect() #3 /var/lib/security/lm_portali/backoffice/st_2_inc_conn.php(44): db_connect() #4 /var/www/vhosts/lastminutecaorle.com/httpdocs/backoffice/inc_conn.php(1): include('/var/lib/securi...') #5 /var/lib/security/lm_portali/template_oggetto.php(6): include_once('/var/www/vhosts...') #6 /var/www/vhosts/lastminutecaorle.com/httpdocs/template_oggetto.php(1): include('/var/lib/securi...') #7 {main} thrown in /var/lib/security/lm_portali/backoffice/inc_error_handler.php on line 69