• Resolved Paulo Matheus

    (@dukeriulyck)


    Hello everybody. I did a local install of WordPress and everything went fine. I had some mishaps, but I managed to solve it (such as the theme that was not being installed). Now, with the theme installed, I went to try to edit the site to start my project, however the home page only shows an “Index of /” and below the list of directories (image attached) and I can’t edit anything on that page. If I create a new page, I edit normally, but the main one (homepage) I can’t.

    This is a bug in my server software?
    I’m using Httpd as a server and my operating system is Slackware Linux.
    I noticed that the list of directories shown is the content inside my “htdocs”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It appears your server is not set to recognize index.php as the default page for a directory. You’ll need to edit your localhost server configuration.

    This appears in “/etc/httpd/conf.d/php.conf” on my Fedora system:

    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    #
    DirectoryIndex index.php
    
    

    It may be similar under your OS.

    Thread Starter Paulo Matheus

    (@dukeriulyck)

    @sterndata I observed that very few URL’s will appear on a page with content. Most appear a list of directories or a blank page. Example: I can access the dashboard just if I manually enter the URL "https://localhost/wp-admin/index.php". If I put just "https://localhost/wp-admin/" it will appear a list with the content of the folder “wp-admin”.

    Does your answer solve this as well?

    Thanks in advance.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes. You need to fix your server config.

    Thread Starter Paulo Matheus

    (@dukeriulyck)

    @sterndata I was able to solve it just by putting the index.php in the list that will serve as directory indexes (as you said). In my Operating System (Slackware Linux) the path of the httpd configuration file is: /etc/httpd/httpd.conf
    For people who have doubts, in the httpd.conf file the DirectoryIndex index.php line is inserted in the part identified by <IfModule dir_module> </IfModule> (which will probably already have the DirectoryIndex index.html line). So the end result should look like this:

    <IfModule dir_module>
        DirectoryIndex index.html
        DirectoryIndex index.php
    </IfModule>


    I appreciate your help, Steven. Strong hug.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I can’t edit the homepage. It shows the list of directories only.’ is closed to new replies.