1 Database, 2 Websites
Hello
Does anyone know if it is possible to have two website folders in public_html of the same Cpanel account use the same (1) database?
The reason for this is while one site is running live a copy of the site can be running on a subdomain for maintenance..
-
Any site can access any MySQL database as long as you have the database name/user/password. 0 -
What @ffeingol said. For example, you could have domain.com/wordpress1 and domain.com/wordpress2 but if the wp-config.php has them set up to use the same database it will work just fine. 0 -
account1 and account2 are two different cpanel accounts in same server. And the db hosted on account2. On this situation, is it possible to link database to account1 and account2 0 -
@hmaddy - it would likely work for reading the database data, but could have issues for writing as we try and keep the database user limited to the cPanel account. In general recommend that people don't share data across accounts. 0 -
account1 and account2 are two different cpanel accounts in same server. And the db hosted on account2. On this situation, is it possible to link database to account1 and account2
I am looking to host multiple websites lets say around 10 on the same cPanel account, is that possible, or would that cause conflicts in the future ?0 -
@firstdev123 - there's no reason that wouldn't work using addon domains. 0
Please sign in to leave a comment.
Comments
6 comments