• Resolved jtancil

    (@jtancilyahoocom)


    Hello,
    I am trying to set up WordPress for a client who uses XO Communications as a host. However, getting WordPress set up is driving me nuts. I keep getting this error message:

    Warning: main(./wordpress/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /web/wordpress/index.php on line 17

    I have manually installed the latest release of WP. The admin area is working fine.

    I set my general configurations as:
    WP: http://newyorkharborschool.org/wordpress
    Site: http://newyorkharborschool.org/wordpress

    I modified the index file with this code: require(‘./wordpress/wp-blog-header.php’);

    I checked and wp-blog-header exists and is in the wordpress directory.

    I have tried reinstalling WordPress. None of that worked.

    I tried downgrading WordPress: XO offers a one-click installation of an old (2.2.3) version of WordPress. After downgrading, pages and posts displayed. However, when I upgraded I get the above error message.

    Thank you for any help. This is driving me nuts!
    Jeff

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    The modification that made to index.php is causing your trouble. Just undo the modification, or replace it with a copy from a freshly downloaded WordPress.

    Thread Starter jtancil

    (@jtancilyahoocom)

    Thanks James. I deleted my WordPress installation and loaded a fresh copy, including the original index.php.

    My new installation is in the root directory with the files of the static site.

    Things still don’t work: all pages and posts go to the home page of the static site.

    I changed the Permalink structure a few times. When I did a custom structure (/%postname%/) I got a 404 error.

    Is this an issue with the .htaccess file?

    Thank you.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    You can’t have both WordPress and your static site in the same directory. It just won’t work that way.

    Thread Starter jtancil

    (@jtancilyahoocom)

    Thanks, James. Re-installing in its own directory was half the battle, thank you.

    The other half was getting WordPress to work in its own directory, which is not so easy with XO Communications. I had to install the Disable Canonical URLs plugin for that to work: http://www.mydigitallife.info/2010/01/24/how-to-disable-wordpress-canonical-url-or-permalink-auto-redirect/

    Thank you for your help,
    Jeff

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Manual Installation Not Working’ is closed to new replies.