• This is my first WP site.

    I’ve just installed XAMPP on my local computer, and am not sure where to put my local WP installation (concerns about root vs. sub-directory).

    I intend to install WordPress in the ROOT directory for the online published site, which is public_html.

    Online tutorials for XAMPP-and-WP installation suggest creating a new MySQL database in XAMPP and an identically-named sub-directory for my WP installation in XAMPP’s \htdocs directory:

    So my local MySQL database is tom
    And my local WP install directory would be c:\xampp\htdocs\tom

    This worries me. I don’t want to cause problems between the two sites due to a mismatch in root vs. sub-directory locations. The published site will be in the ROOT. There’s already considerable content in the local \xampp\htdocs, so it makes sense to install WordPress in it’s own sub-directory locally…

    Will WP in a local-host sub-directory cause any problems when the site is transferred to the published site’s root directory?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Tim Nash

    (@tnash)

    Spam hunter

    The paths and domain would need to be changed regardless when hosted on your server, your files are not actually being stored in the servers root directory (if they are you have a seriously broken server) more likely it’s either the user root, or a dedicated folder like htdocs.

    Either way when migrating you will need to make a few changes to the db for domain names etc so hosting it in your sub-directory will not cause issues.

    Thread Starter BothHands

    (@bothhands)

    Thanks, Tim.

    Yeah, I meant my production/online WP installation (shared UNIX HostGator plan) will be located in my USER root directory: mydomain/public_html.

    I’m glad to know I won’t be building in any headaches by installing my local-host WP in an xammp sub-directory. I’ve read a lot of online caveats describing SEO complications and various technical problems that can occur when WP is not in the root directory.

    Thanks to you, I’m now free to ‘blunder ahead’.

    Thanks,
    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My First WP Site: To be hosted in the ROOT, but which directory in XAMPP?’ is closed to new replies.