I have a LAMP server - on there I have multiple domains. Each domain has its own user, db's, public_htmls/, etc.
I need to access Domain A's database from a web app on Domain B in php.
Currently I just use
localhost as my host for all DB connections in my web apps - but now I need to access a DB under a different domain so that obviously won't work.
Not sure if there is server (apache/php/dns) configuration required which would make this question better suited for server fault.