I have the following problem, yesterday I changed from a shared server to a VPS from the Hostinger provider, and now the system does not work, and in addition to that some words that have an accent come out with the following sign � and that I have set the UTF-8 correctly, the VPS has the same version of PHP that I have on my local server and on Hostinger's shared server, so I can't identify the problem. The system has an option with which a client is opened and its information is displayed in a modal through Ajax, it works fine on the hostinger shared server and on the local server, but on the VPS it does not show the data, everything comes out in white.
Now I really don't understand what happened, because the system had been in use for more than 5 months and everything was fine, we changed to a VPS and now nothing, it's all a bug, I don't know what other information I can provide so that they can help me with the solution. Thank you so much.
Being a VPS, check if you have these values in the /etc/my.cnf file (this is for MySQL, not for MariaDB):
and if you don't have them add them and restart the MySQL service and try again.