WordPress.org

Ready to get started?Download WordPress

Forums

Have two wordpress sites on one localhost (20 posts)

  1. bmd91
    Member
    Posted 1 year ago #

    Hi,

    Currently I have a site at /localhost/ with the installation in a folder in the htdocs folder. I was wondering how I can navigate to a second installation in my htdocs folder?

    Sorry if noob question

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Install WP in a different sub-folder using a different database or table prefix.

  3. bmd91
    Member
    Posted 1 year ago #

    As in reinstall the current site in htdocs/wordpress/ to htdocs/wordpress/site1 and then install the second site in htdocs/wordpress/site2 ?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    No. Create a new folder in htdocs called wp2 and install WP into that folder.

  5. bmd91
    Member
    Posted 1 year ago #

    But how would I navigate to it if the one now is setup to /localhost/ ? Sorry, thanks

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    I have a site at /localhost/ with the installation in a folder in the htdocs folder

    Your current install is in a sub-folder off htdocs. So how would this be different from this second install in htdocs/wp?

  7. bmd91
    Member
    Posted 1 year ago #

    Because when I go to my browser and go to /localhost/ the installed site comes up and if I go to /localhost/wordpress/ it 404s. I'm not currently navigating to a sub-folder of localhost when I go to the site in a browser

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Where is the original copy of WP installed in htdocs?

  9. bmd91
    Member
    Posted 1 year ago #

    A folder called wordpress. So file structure is htdocs/wordpress/*All WP Files* but when I navigate in the browser I only type in /localhost/ and site loads

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Then you must have used Giving_WordPress_Its_Own_Directory to get WP to take over the localhost root. You now need to reverse those changes.

  11. bmd91
    Member
    Posted 1 year ago #

    In the General settings I don't have a site url category? Does this mean I'm not an admin? Because I know I have site-wide admin privileges and am set as an administrator in wp_usermeta

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    You will have two urls in Settings -> General: the site url and the WordPress url.

  13. bmd91
    Member
    Posted 1 year ago #

    No in mine I only have Site Title, Tagline, E-mail Address, Timezone, Date Format etc. No url inputs at all

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    Now look just underneath Tagline...

  15. bmd91
    Member
    Posted 1 year ago #

    Under tagline is email address. There's no inputs for a URL anywhere on the general settings page

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    Is this a wordpress.com site?

  17. bmd91
    Member
    Posted 1 year ago #

    Nope it's definitely from wordpress.org

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    Site url?

  19. bmd91
    Member
    Posted 1 year ago #

    The live site is bostinno.com

  20. esmi
    Forum Moderator
    Posted 1 year ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic