• Resolved whynaturally

    (@whynaturally)


    I installed WordPress directly to http://whynaturally.com and am now trying to change the Website URL to http://whynaturally.com/elsewhere for security purposes, leaving the Site Address as whynaturally.com. I have tried following the step-by-step Codex instructions at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory but am confused about which changes I need to make in FTP. I am using DreamHost as my host, and I have tried the suggested changes to both the index.php file and the wp-config.php file, but neither will allow me to view my site correctly. I cannot make changes directly in WordPress either, because when I try to visit either http://whynaturally.com/wp-admin OR http:whynaturally.com/elsewhere/wp-admin I get the following error message:

    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/raceng/whynaturally.com/wp-admin/index.php on line 17
    Fatal error: require() [function.require]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/local/lib/php:/usr/local/php5/lib/pear’) in /home/raceng/whynaturally.com/wp-admin/index.php on line 17″

    Somehow, when I visit both http:whynaturally.com and http://www.whynaturally.com/elsewhere/wp-login.php, I am able to view the site and click on the links, but the formatting is not right and I still cannot access my WordPress dashboard or admin features. How do I get my site to look and function normally again? Thanks in advance for any help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Which steps did you follow?

    The first one is to make the folder (elsewhere)

    The second was to change the WordPress address (URL)

    If you did both of those, then all you have to do is move your WordPress core files to the new location (i.e. everything that was in root, except for the elsewhere folder, goes into the elsewhere folder).

    Basically we need to know where you’re at 🙂

    Thread Starter whynaturally

    (@whynaturally)

    I guess I am having trouble with step 1, haha. I am not sure whether to create the “elsewhere” folder inside the root folder or outside of it, Also, I was under the impression that the only two files I was supposed to copy into the new “elsewhere” folder were the .htaccess and index.php file….but are you saying I need to copy the entire contents of my root folder into the “elsewhere” folder?

    Currently, here are the steps I have completed, in response to your post above:
    1. I changed my WordPress address in my General Settings to hhtp:whynaturally.com/elswhere, and left the Site address as http:whynaturally.com
    2. I made a “whynaturally.com/elswhere” folder outside of my root folder, and copied the entire contents of my “whynaturally.com” folder into it.
    3. I changed the index.php file inside my foot folder to read: require(‘./elsewhere/wp-blog-header.php’);
    4. I tried accessing whynaturally.com/elsewhere/wp-admin AND plain old whynaturally.com and am still getting the following error message:

    Warning: require(./elsewhere/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/raceng/whynaturally.com/index.php on line 17
    Fatal error: require() [function.require]: Failed opening required ‘./elsewhere/wp-blog-header.php’ (include_path=’.:/usr/local/lib/php:/usr/local/php5/lib/pear’) in /home/raceng/whynaturally.com/index.php on line 17

    Nagaraj

    (@nagrajsuligavi)

    Hey,
    Through FTP did u uploaded wp-content ??

    Try that also u may get some idea ..

    Because yesterday only i did this so ….

    All the best

    Thread Starter whynaturally

    (@whynaturally)

    nagrajsuligavi: I did upload wp-content into my new folder, and still no luck getting the site to appear.

    Anyone have ideas what the problem could be?

    Thread Starter whynaturally

    (@whynaturally)

    I have contacted DreamHost support and they moved the necessary iles for me. Problem solved. Thanks anyway, all.

    Nagaraj

    (@nagrajsuligavi)

    Sounds Good

    Mika Epstein

    (@ipstenu-dh)

    DreamHost Rep

    Nagaraj, if you’re having issues with this on DreamHost, please let us know and we’ll help you out too 🙂

    Nagaraj

    (@nagrajsuligavi)

    Sure …. Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problems moving root install to its own directory using DreamHost’ is closed to new replies.