• Hi

    I’m building a wordpress site on my localhost and I need to build a seperate site also.

    I’ve seen a few different methods and so far I created a new database in myphpadmin, downloaded wordpress again to another folder and renamed it from wordpress to wpowd, went into it’s php.config and pointed it towards the new database I created but when I put in localhost/wpowd it doesn’t work.

    I’m doing something wrong but I don’t know what.

Viewing 1 replies (of 1 total)
  • in addition to adding it to your hosts file you also need to add the new site to Apache, either in httpd.conf or /extra/httpd-vhosts.conf file depending on how your Apache is configured.

    Rather than localhost/wpowd
    its easier to make it something like
    wpowd.local or wpowd.loc or wpowd.dev

    The Apache entry looks like this

    <VirtualHost 127.0.0.1>
       DocumentRoot "C:\path\to\localhost\wpowd"
       ServerName wpowd.dev
    </VirtualHost>

    If you scroll down in the Apache config file you will find a section that already has an entry or two like that. Just add another. And, \path\to\localhost\ is supposed to be changed with the path to the root localhost folder on your Apache installation.

    After making that entry restart your LAMP installation (Whether WAMP or MAMP or XAMPP)

Viewing 1 replies (of 1 total)
  • The topic ‘installing mutiple wp databases in localhost’ is closed to new replies.