Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Shared Secure Server on another server!


Recommended Posts



I have sucessfully set up one store with my hosting company using shared Secure server facilities.


However :'( I have spent all day trying to set up my new site and couldn't see what was going wrong.



Warning: mysql_connect(): Unknown MySQL Server Host 'http' (1) in /home/hostsdomain/public_html/secure/ourdomain/catalog/includes/functions/database.php on line 19

Unable to connect to database server!


Having spoken to the hosting company they have now advised me that the shared secure server is actually on a different server to the website we own and due to the amount of bandwith we use it can't be moved.



I asked them if we can use the config files to point at the localhost database in our website remotely and they said localhost means local and gave the following advice.


"You could possibly use curl to connect to a remote database,

but would need a re-write of the php code."


Not a clue what they are talking about or what code to change any help would be grateful appreciated. OsCommerce is the only php/MySQL stuff I have ever done.


Please Help if you can or let me know if it is a lost cause and I should tell them to scrap the shared server.


:'( >_< :'(

Link to comment
Share on other sites

The other server should have its own ip address which you could use in place of 'localhost' - and I don't mean




Hi I tried using http://123.456.7.8 (using real ip)

in the config file but with no sucess. Do I actaully have to amend the catalog/includes/functions/database.php on line 19


Very new to php so if you could tell me the code to insert I would be grateful.



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...