Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    1

    Default Shared MySQL databases and php files for several CPanel accounts

    Hello!

    My client is moving his sites from one host (VDS) to another (CPanel based). The problem is that all sites (5+) use (a) two shared mySQL databases (b) common include files.

    And I don't have an idea what's the best way to move such a structure on CPanel. Is there any posibilities to have shared files/DBs for different CPanel accounts? Or maybe there is some better solution.

    Thank you!

  2. #2
    Member
    Join Date
    Jul 2004
    Posts
    27

    Default

    The "sharing" of a database is a function of the application(s) that is/are accessing the data - each ap will need the new path/login/db info for the new server.

    Don't confuse what an "account" does with what goes on outside of Cpanel/WHM.

    With a correct configuration string, any Web site can have access to any MySQL database on any server (ok - oversimplified a bit, but basically true).

    We've done the same thing before, too - it just requires a bit of planning and forethought - and it can be done.

    AS for the includes, i'd need some more info as to exactly what they are. Includes can be called from anywhere - take a look at how they are being called, now, and test that method on the new server.

    Best advise is to do all this testing/config'ing well ahead of time. Heard too many times of domain transfers from hell that were a result of poor planning/testing.

Similar Threads & Tags
Similar threads

  1. Copy files between cPanel accounts with PHP
    By robocrop in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 05-14-2008, 04:00 PM
  2. Replies: 1
    Last Post: 02-11-2008, 12:40 PM
  3. How to move MySQL databases between accounts
    By appcomm in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-06-2007, 10:37 PM
  4. Using other MySQL databases from other accounts...
    By $D$2 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-30-2005, 06:11 AM
  5. Some Mysql Databases won't PHP query - PHP 4.3.10
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-26-2005, 03:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube