Support » Installing WordPress » WordPress in different directory from blog address (can’t get it to work)

  • I’m trying to put the WordPress files in a directory called http://mysite.com/wordpress/ and my blog address in http://mysite.com/news/ but I can’t get it to work. I had WordPress working ok when I tested everything wholly within the /wordpress/ directory, but I’m not able to move it to the /news/ directory.

    I’ve followed the intruction for moving at:

    http://codex.wordpress.org/Moving_WordPress

    and I get the error:

    Warning: main(./wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /usr/www/users/mysite/news/index.php on line 4

    Fatal error: main(): Failed opening required ‘./wordpress/wp-blog-header.php’ (include_path=’.:/usr/local/lib/php’) in /usr/www/users/mysite/news/index.php on line 4

    Obviously it isn’t finding the needed files, but I don’t know where to enter this information to fix the problem.

    I note that the instruction page in the Codex for moving WordPress (listed above) says that *three* pieces of information are needed, with #3 being the file system path to wp-blog-header.php, and yet the instructions right below those three pieces of information *don’t mention item #3*. Is it missing, and should it be changed somewhere?

    Many thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Based on your description this
    ./wordpress/wp-blog-header.php
    should be
    ../wordpress/wp-blog-header.php

    Excellent! Thank you – works great. It looks like that’s an error in the Codex instructions for moving.

    No. The Codex is fine. However it wouldn’t hurt if your learn something about how to set up a relative path 🙂
    Glad it works for you, welcome to WP!

    Even better would be for the unix geeks of the world to learn to communicate clearly; but then “unix geek” and “clear” are contradictory.

    I have no idea what unix is 🙂
    But I have learned BASIC html:
    ./directory <== goes “down”
    and
    ../directory <== goes “up”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress in different directory from blog address (can’t get it to work)’ is closed to new replies.