I am running wheezy and Nginx with ispconfig3. mydomain1.com, mydomain2.com ect can connect without problem using. Code: @ $db = mysql_pconnect("localhost", "mriservi_spin321", "rad69diags") or die('Could not connect: ' . mysql_error()); When I create new sites with domains sld.Mydomain1.com or sld.Mydomain2.com they will not connect to localhost. I have have tried connecting to mydomain1.com, mydomain2.com and my ip without luck. What form for localhost or directive do I need to use?