Forums

php 5.2.8 and directory listing prob (6 posts)

  1. thegus541
    Member
    Posted 3 years ago #

    can't get anything other than directory listing, which finds index.php
    for the document root folder http://myserver/wordpress
    or even http://myserver/wordpress/index.php

    I do get pages I can log into and configure properly at
    http://myserver/wordpress/wp-admin/index.php, the database is configured ok up and running fine

    Server is Apache 1.3, trying different .htaccess files, problem always the same.

    Any ideas anyone?
    thanks

  2. Samuel B
    moderator
    Posted 3 years ago #

    did you try adding this to the .htaccess?

    DirectoryIndex index.php index.html index.htm

  3. thegus541
    Member
    Posted 3 years ago #

    oh yes. still no luck

    when I do:
    'mv index.php indexphp'

    and

    'mv readme.html index.html'

    and go to the wordpress directory with or without specifying the filename, the readme.html page displays fine.

    I will write a test php page and post back.

  4. thegus541
    Member
    Posted 3 years ago #

    when I do:
    http://myserver/wordpress
    it doesn't find index.php ( though it would find index.html as shown above )

    if I do a phpinfo page and call it index.php, and do:
    http://myserver/wordpress/index.php
    the phpinfo page displays fine.

    I will ask on the forum for the server software I am using, I think its more a prob to do with how I have set up php and my webserver than a wordpress issue.

    My goal is to become familiar with installing and using WordPress on my own test server before using it on paid-for hosting.

    many thanks

  5. spitfire77
    Member
    Posted 3 years ago #

    I had the same problem. It is NOT a WordPress issue, but rather an Apache config issue.

    If you have access to your Apache httpd.conf file, change this line:

    AllowOverride None

    to:

    AllowOverride All

    As mentioned in the httpd.conf file AllowOverride controls what directives may be placed in .htaccess files.

    So you can adjust the AllowOverride directive to whatever tickles your fancy, but setting to All makes WP work as long as you include this as well in your .htaccess file in your wordpress dir:

    Options -Indexes
    DirectoryIndex index.php index.html index.htm

    If you don't have access to your httpd.conf file, and you cannot create the above .htaccess file... contact your provider... and good luck!

  6. Oscar_islix
    Member
    Posted 2 years ago #

    I have the same problem. I have tried to create .htaccess with the line DirectoryIndex index.php index.htm but still just seem to be in a loop to produce a Directory listing. If I go directly to wp-login.php, again i go to a directory listing but then if I click on index.php then I manage to reach the dashboard. I can't get any further with this and I am finding it very frustrating so any help would be much appreciated. By the way, I have got it all set up beautifully on my localhost - I just have the problem on my remote host.

    Thanks in anticipation

Topic Closed

This topic has been closed to new replies.

About this Topic