• Resolved AiToscane

    (@aitoscane)


    Hi all, for technical reasons I cant place WP in the root directory, so I ve placed it in a subdirectory. It works fine, but now i need to make a second website (different domain but same hosting account). So I ve made another subdirectory and uploaded WP to that subdirectory as well. But if I want to install WP on that domain, I get a text box saying I’ve already installed WP. That’s true, but for another website! So my structure looks like this:
    ROOT
    -WEBSITE#1
    –wp-admin
    –wp-content
    –…
    -WEBSITE#2
    –wp-admin
    –wp-content
    –…

    I know I have to use a separate database, so thats what i’m trying to do. But if I cant install, I cant name the second database either. If tried manually adjusting the wpconfig.php for the second website (inserting the data of the second database) but no avail.

    Anyone has an idea what to do?

    BTW: I know multisite could be a solution, but I understand the first WP installation has to be in the root directory for multisite to work and as I mentioned thats unfortunately not possible right now.

    Thanks for your help!

    Ronald

Viewing 11 replies - 1 through 11 (of 11 total)
  • First, does your hosting account allow you to have multiple domains?
    if so you shoud be able to point each domain to a different folder – I currently have 12 wordpress installs with different domain names (some are subdomains) on my host

    Thread Starter AiToscane

    (@aitoscane)

    Yes, I’m allowed to have multiple domains.

    so have you pointed the 2nd domain name to a folder that is different from the location where you installed the first site?

    when you say

    But if I want to install WP on that domain, I get a text box saying I’ve already installed WP

    are you using a script to do the install or you manually installing WP? If you are using a script it could well be that the script is causing the issue. Try manually installing the WordPress files and give it a go.

    Thread Starter AiToscane

    (@aitoscane)

    The thing is: when I navigate to the install.php page in the subdirectory I get a message there is no such page. When I look in the subdirectory on the server I see install.php exists, so I don’t get why I cant surf to that page (www.example.com/subdirectory/wp-admin/install.php)

    are you using the domain name for the second site?
    You say you have originaldomain.com and otherdomain.com.
    If you have pointed otherdomain.com to the ROOT/WEBSITE#2 folder then to do the install you would use otherdomain.com/wp-admin/install.php not otherdomain.com/WEBSITE#2/wp-admin/install.php that wold point to ROOT/WEBSITE#2/WEBSITE#2 and there is no folder there and hence no install.php that can be run from it.

    Thread Starter AiToscane

    (@aitoscane)

    The second site (otherdomain.com) is pointed to the ROOT/WEBSITE#2 folder and when i surf to https://www.otherdomain.com/wp-admin/install.php I just get a blank page.

    :-/

    are you sure the wp-config.php is pointing to the new database?
    can you get into the backend?

    Thread Starter AiToscane

    (@aitoscane)

    I finally got it to work. It was just me being stupid. I wrote the DB name where I was supposed to write the DB user and vice versa. Thanks for your help though!

    please mark this resolved

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘2nd installation’ is closed to new replies.