Question

{serverip}/wp-admin shows Index of /wp-admin

I am fairly new to this, so I assume it is an easy-to-fix problem.

I installed LAMP on Centos 7 and Wordpress under /var/www/html

Everything seems to be working, but when I try to get to the Wordpress Welcome page on a browser I get the “Index of /wp-admin” page instead.

What am I doing wrong?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @johantwelli1,

While we try to resolve your issue, let me give you an alternative which you can use :

https://marketplace.digitalocean.com/apps/wordpress

It’s the MarketPlace WordPress droplet. The droplet comes installed with everything needed for you to start + when you login you can directly install wordpress.

Regards, KFSys

Hi @johantwelli1,

It does seem like your application is not actually using any PHP. Have you installed PHP on your server? You can check that with the following command:

php -m

Looking forward to your reply!

Regards, KFSys

Hi @johantwelli1,

Can you confirm one of the following as I’m not sure I completly understood, when you load your website, let’s say domain.com, you are redirected to domain.com/wp-admin/index.php?

If the above example is not correct, can you please explain the which page exactly are you trying to load and what is shown afterwards?

Regards, KFSys