Forums

Install wp multi domain names (8 posts)

  1. hayem
    Member
    Posted 3 years ago #

    I would like to know after installing wp can I use to access the same database for multi domain names?what file do I need to change?what are the steps?do I need to use install.php?

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Assuming your host allows a database to be accessed from different domains, then essentially just need to use a different $table_prefix in the wp-config.php for each domain's WordPress installation.

    See Installing_Multiple_Blogs for details.

  3. hayem
    Member
    Posted 3 years ago #

    All my sites are with 1and1.
    which part do i have to change

    $table_prefix = 'wp_'
    what else do I need to change?
    all the file names wp_ and folders wp_ ?

    Thank you

  4. MichaelH
    Volunteer
    Posted 3 years ago #

    Does each site have a different database? And now you want to put all the tables for all the sites in one database?

  5. hayem
    Member
    Posted 3 years ago #

    can all domain names on the same hosting access the same database?
    if yes what do I have to change?

  6. moshu
    Member
    Posted 3 years ago #

    They can access the same database (if the host lets you) but they can NOT access the same tables.

    Sometimes try to answer the questions before you go further!

  7. MichaelH
    Volunteer
    Posted 3 years ago #

    You'll need to ask your host that question.

    But if they say yes, and you are going to put the WordPress files for all the domains in one database, you'll need to change the prefix for each domain. This tool may help with that: http://blogsecurity.net/wordpress/tool-130707/

    Of course you'll need to change the $table_prefix accordingly for each WordPress install.

    Please make backup copies of your databases before doing anything. Don't ignore this suggestion, please. See WordPress Backups.

  8. hayem
    Member
    Posted 3 years ago #

    thank you guys for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags