Support » Fixing WordPress » Directory listing denied

  • This Virtual Directory does not allow contents to be listed
    Maybe this will help someone else. I’ve been trying to get WordPress running for a work-project, and although it installed fine, I kept getting the above error. I got no help from the sysadmin people, who seem to be struggling with what I’m trying to do. They’re running IIS. So I trawled the net and came up with this which says:
    Try making an index.html (or index.htm or default.htm depending on the default file in your web server config) file inside the admin directory with:

    <html>
    <head>
    <meta http-equiv="refresh" content="0;index.php" />
    </head>
    <body>
    'Redirecting to admin index...'
    </body>
    </html>

    Fixed! I could finally log in! I don’t know if this is going to be such a revelation to others, but it was to me!

Viewing 7 replies - 1 through 7 (of 7 total)
  • It soiunds as if the server isn’t set up to process index.php as a default document.
    TG

    Yep. That’s what I’m thinking, after all my googling. But I don’t know what to tell them to fix! I’ve just discovered that although I can access the page, I STILL can’t login normally – the only way I can get to the WP interface is by clicking on the ‘edit’ link on index.php (which I can only get to via the redirect). Any suggestions?

    You can always ask them to edit httpd.conf (usually at /usr/local/apache/conf/httpd.conf) and to add index.php to your DirectoryIndex line. I have included a sample of a DirectoryIndex line that works below:

    # Add index.php to your DirectoryIndex line:
    DirectoryIndex index.html index.php

    thank you, I’ll try that – but they’re not using apache – they seem to be using all microsofty stuff…

    I think they should be using apache + php on an IIS server (Microsoft’s server technology), but I might be wrong…

    If they are in fact using IIS & PHP, then tell them that index.php needs to be added as a default document in the properties for wwroot in the IIS admin area. If they are smart and are willing to help, they’ll know what that means.
    Tg

    Watch that code workaround. It works with Mozilla, but not with IE. I looked up the <meta http-equiv=
    It ought to be something like
    <meta http-equiv="refresh" content="5;URL=index.php" />
    (The 5 is the length of time it waits whilst displaying your message in the body.)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Directory listing denied’ is closed to new replies.