Support » Fixing WordPress » Failed to create stream, Failed opening required…

  • I just installed WordPress the second time (first time, I installed the dictionary add-on, and it crashed badly).

    I’m running on a shared IIS server from Interland (

    I installed WordPress according to the instructions (I think), but Interland has a weird thing where they don’t put your website at the root of your account, they hang it off a ‘www’ sub-directory for each individual user.

    So, my directory structure looks like this on the server:

    The index.php, wp-config.php and those files are under

    The weird thing is that they somehow make it so that when you access the site, that ‘www’ directory appears to be the root of your site. (i.e.: surfing to gives you the index.php file that is actually in the ‘www’ folder).

    So anyway… I got WordPress installed correctly, I can administer it alright, I can log into Interland’s Control Panel and I see that it created the database alright, I can create posts, etc.

    All appears to work correctly, until I try to see what I’ve posted by surfing to the website… then I get the following:

    Warning: main(./wp-blog-header.php) [function.main]: failed to create stream: No such file or directory in d:\Customers\user1234567\www\index.php on line 3

    Fatal error: main() [function.main]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.;c:\php4\pear’) in d:\Customers\user1234567\www\index.php on line 3

    (User1234567 isn’t my real user name, of course.)

    Any ideas on getting it to work properly?

    I thought it might be because the .php files have a Linux line feed, but IIS looks for a CR-LF, so I tried doing a search & replace for all those in the .php files… but no joy.

    Any help would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not much here about Interland IIS hosting that ends happy…

    Have you seen this post? Maybe it’d help?

    Hi, thanks for the link.

    I’d already set up PHP, Perl, CGI and MySQL for the Interland server, and I’d set index.php as a default page.

    It all appears to work when I’m creating posts, and I can access all the administration pages for Word Press, but I just can’t see what I’ve posted because of that error I’m getting.

    Anyone have any ideas what’s causing the error and how to fix it?

    Ok, duh… I knew it had to do with the paths, but I haven’t done much HTML editing in the past year, so I’m not as sharp as I used to be… it was a VERY simple fix:

    In index.php:
    <?php /* Short and sweet */
    define(‘WP_USE_THEMES’, true);

    So, I just changed:

    Now to do some testing to see if I have to alter any other paths…

    Thanks to everyone for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failed to create stream, Failed opening required…’ is closed to new replies.