We help IT Professionals succeed at work.
Get Started

Installing Wordpress on Windows/IIS, error when accessing wp-admin/index.php

Jayrw asked
Last Modified: 2012-05-09
Hello, I am trying to add a Wordpress blog to an existing site.  I have the MySQL database set up and loaded, but when I tried to access wordpress/index.php, I got the error

Fatal error: require_once() [function.require]: Failed opening required './wp-blog-header.php'

I went into wordpress/index.php, and changed the reference from './wp-blog-header.php' to 'wp-blog-header.php', and that solved that problem.

But I get the same kind of error when I try to access wordpress/wp-admin/index.php

Fatal error: require_once() [function.require]: Failed opening required '../wp-load.php' (include_path='.;c:\PHP5') in D:\Inetpub\xxxx\wordpress\wp-admin\admin.php on line 20

I looked at the code for admin.php, and I the relative file reference looks OK to me.

if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');

If I'm in wordpress/wp-admin/admin.php, I think that the reference of ../wp-load.php should point to wordpress/wp-load.php, which is a valid non-zero-byte file. Any ideas?

It feels like it might be a Windows vs. Linux thing, but I don't know enough to try different things out.

Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE