Hello,
After checking the server, the problem was the detailed on our first reply. To solve it, we just set a custom HOME folder
putenv("HOME=/var/www");
And set 777 access to the .config folder and all its subdirectories
$ chmod 777 -r /var/www/.config
Regards.