I fix the error about localhost, there are 2 diff host variables, one for the database, another for the http_host