Support » Installing WordPress » Getting WP Installed In the Right Place

  • Resolved dschaefer


    I’ve inherited a WP install for my church and I’m trying to get my head around it. I’m new to WP, but have several years of casual use of MovableType under my belt.

    I’ve handled upgrading my plugins and removing unused plugins and I need to upgrade WP. Before I do so, however, I’d like to get a dev & production setup in place so I can try changes out before they go ‘live’. Before I can tackle that, I think I need to remedy how WP is installed.

    Right now my site is published to, but WP is installed in Typically, WP is installed in the same directory where the site is published, right? So my production WP install should be in, not, correct?

    How do I move my WP install then and make sure the themes, plugins, etc follow? Right now in my general settings page I have as my WordPress Address and as my Site Address.

Viewing 5 replies - 1 through 5 (of 5 total)
  • DaveCoast


    Having WP in /dev is good and changing the general settings gets you almost there.

    Now move (not copy) the index.php from /dev to the document root (

    Then Edit/Update index.php line require('./wp-blog-header.php'); to require('./dev/wp-blog-header.php');

    This gets you live site running and you can put your test site somewhere else. Hope that helps.



    My live site is running just fine as is, I guess I wanted to clean it up so that the live site is running from the same directory that it’s published to. My assumption was that is the typical way it’s done and I want it to be right. It seems that this is a bit of a work around with WP in the dev folder even though it’s not the ‘development’ install.

    I’m having a bit of a hard time finding my way around a few things like this in the install and I want to clean them up as I go.

    Am I wrong in my assumptions of how things are typically done?



    First I can’t comment on typical – there’s over 60 million sites.

    I do think there is a group of people that like to have everything in the document root (where the site is published) – not me.

    Some of us like to keep the document root as clean as possible. I’ve also read that there are security benefits to having the WordPress core in separate sub-directory named something other than WordPress. So, for me this is how it is typically done. Also, don’t forget the ole – If it ain’t broke don’t fix it :-))

    Moderator cubecolour





    Thanks for the links, they look like what I need.

    It also sounds like I’m a bit too concerned about where things ought to be. It’s working now and although I don’t like the production install in the ‘dev’ directory, I guess I can live with it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting WP Installed In the Right Place’ is closed to new replies.