Good Day All!

I've seen that its possible to use the same installation of Druple for multiple domains but I'd like to ask a question specifically for my case because most of the discussion I've found was quite lengthy and even quite technical which I don't want to get into unless I've actually got an installation to tinker with. Ok here goes:

I wish to manage content from multiple domains on multiple hosts with the same database. So I'd like to administer/write to the same database from remote domains on different servers using Drupal. I'm thinking it would probably require Drupal to be installed on all the remote hosts while modified to write remotely to the central db. Can I do this and has anyone done it before?

Thanks in advance and all the best., -Jerry

Comments

nkurz’s picture

I haven't actually done this, but it should be no problem. When you specify the database to use in '$db_url' in 'settings.php' for the site, the string includes the hostname. Usually this is 'localhost', but having it set to something else should work just fine out of the box.

tag-1’s picture

The original post mentions "remote domains" which sounds like hosts not located on the same network as the main one.

I think it's pretty unlikely most ISPs will allow direct connections to MySQL (for example) from outside their networks. It's definitely possible to connect remotely, but I'd guess not unless you control the servers and/or setup a SSL database connection or something.

So if you do in fact mean, for example, having a site running on a server in California updating and reading from a database in London, I think you've got more than just network latency to worry about.

Or maybe I'm misunderstanding the issue.