Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Shared MySQL databases and php files for several CPanel accounts

Discussion in 'General Discussion' started by mikityuk, Sep 13, 2007.

  1. mikityuk

    mikityuk Registered

    Sep 13, 2007
    Likes Received:
    Trophy Points:

    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. nottheusual1

    nottheusual1 Active Member

    Jul 13, 2004
    Likes Received:
    Trophy Points:
    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice