• Hi everybody. I’ve just installed wordpress on localhost (I am running Apache web server), but when browse wordpress folder, the page is blank and shows the list of the files inside the folder. What am I missing?

    Thanks in advance.
    Giorgio

Viewing 12 replies - 1 through 12 (of 12 total)
  • Try adding
    DirectoryIndex index.php index.html index.htm
    to the top of your root .htaccess file.

    Thread Starter giobongio

    (@giobongio)

    Unfortunately, it doesn’t work. I think it may be a different kind of issue, since when I directly browse localhost/[my_wordpress_folder]/index.php
    the result is again the blank page with the file list..

    Are you sure that WordPress was installed correctly?

    Thread Starter giobongio

    (@giobongio)

    Yes, it is. I got the success message after installation, I am able to login correctly, and when I browse the wp-admin/install.php file, I get the following message:

    “Already Installed
    You appear to have already installed WordPress. To reinstall please clear your old database tables first.”

    So I suppose that installation has succeded.

    What happens if you try https://example/wp-admin/?

    Thread Starter giobongio

    (@giobongio)

    I see a blank page with the list of files (and folders) contained in
    “wp-admin” folder.

    Is index.php listed?

    Thread Starter giobongio

    (@giobongio)

    Yes, it is. And when I click it, I am redirected to the login form. After login, I see the admin control panel. But when I choose “Visit site” from top left, I see the blank page of my wordpress installation folder with the file list.

    What have you set up for DirectoryIndex in your Apache httpd.conf file?

    Thread Starter giobongio

    (@giobongio)

    Here’s my DirectoryIndex directive

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

    Should I add index.php?

    Yes.

    Thread Starter giobongio

    (@giobongio)

    Woah! It works.
    Thank you so much!!!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Homepage blank’ is closed to new replies.