• Hi there,

    I’m a WP rookie with some unix/sysadmin background, so when I decided to set up a wordpress site it seemed like a good idea to just dump it on the same server I already rent for a different site (a fairly small droplet from DigitalOcean, running Ubuntu 14.04). I have apache all set up to use virtual hosts to host the two different sites and even (by some minor miracle) got certbot to work for me so both sites now use https.

    Anyway, long story short I’ve attempted to follow the instructions at https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04 as closely as possible:

    1. I have php 7.0.26 and MySQL “Ver 14.14 Distrib 5.5.58” (note: the fact that I don’t have php 7.2+ may be an issue?).
    2. I have a MySQL database set up with a non-root user to control it, have flushed privileges, and so on.
    3. I downloaded wordpress from http://wordpress.org/latest.tar.gz and unzipped it.
    4. I’ve added my mysql info (username, database name, password) into wp-config.php and have secret keys in the same file.
    5. I’ve moved the whole directory to the root of my website, questionsquestionseverywhere.com, including chowning them to a nice non-root user.

    Where I get lost is at step five: completing the installation via the web
    interface. When I go to the site (questionsquestionseverywhere.com),
    instead of bouncing me to the admin page or a nice WP homepage, I see
    “Index of /” and a list of files in my wordpress directory, including
    index.php, wp-config.php, and so on. From here I am able to get to the
    admin page by clicking through, but the home page of my website is always
    just “Index of /”. I’ve tried reinstalling from as close to the start as I
    could, but see the same problem. Any idea what could be going on here? I’d
    appreciate any tips or help people are willing to provide.

    Note: This questions is similar to
    https://wordpress.org/support/topic/index-of-and-wordpress-file/, but I
    *have* index.php – I can see it right there!

    Cheers,
    Tasha

    • This topic was modified 6 years, 4 months ago by endlessquestions. Reason: Fixing list entries, hopefully
    • This topic was modified 6 years, 4 months ago by endlessquestions. Reason: Actually fixing the list entries this time

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • including chowning them to a nice non-root user

    They should be owned by whichever user is running Apache. This varies from host to host.

    The first thing that I’d look at is the index priority set in Apache on that folder. From what you’ve said, there’s a very good chance that index.php isn’t part of that list. Without index.php being part of the fallback, your server won’t think of that as a file to process

    Thread Starter endlessquestions

    (@endlessquestions)

    @kjodle, I’ve tried chowning to root, which is the user running apache, but it didn’t seem to change anything.

    @catacaustic, you were correct that my apache configuration pointed at index.html instead of index.php. When I fixed that, the problem still occurred because my ssl config had been created before I fixed it, so I had to change index.html -> index.php there as well, and now the site works as expected!

    Thank you both for your help, and apologies for taking so long to try out your solutions.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Seeing “Index of /” on a fresh wordpress install’ is closed to new replies.