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

Posted April 9, 2021 794 views

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?

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.

Submit an Answer
3 answers

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, you are redirected to

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?


  • Oh hi, thanks for looking into this.

    My current situation is this:

    When I try to get to the Wordpress Welcome Page by going to {mysite}/wp-admin a page with the following opens:


    • Dashboard Administration Screen *
    • @package WordPress
    • @subpackage Administration */

    /** Load WordPress Bootstrap */
    requireonce _DIR__ . ’/admin.php’;

    /** Load WordPress dashboard API */
    require_once ABSPATH . ‘wp-admin/includes/dashboard.php’;


    Is there something wrong with my PHP installation perhaps?

    • Just entering the IP shows:


      • Front to the WordPress application. This file doesn’t do anything, but loads
      • wp-blog-header.php which does and tells WordPress to load the theme. *
      • @package WordPress */


      • Tells WordPress to load the WordPress theme and output it. *
      • @var bool */ define( ‘WPUSETHEMES’, true );

      /** Loads the WordPress Environment and Template */
      require DIR . ’/wp-blog-header.php’;

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!


  • Hi @KFSys

    In the meantime I did another install of wordpress and mysql. Now, when I try to open wordpress in a browser I get the error message:

    Error establishing a database connection

    I might have made a mistake in the wp config file.

    • Doesn’t look like it. I have no idea why it doesn’t work. Could there be a problem with php versions 5.6 and 7?

    • The error

      Error establishing a database connection

      Means your wp-config is not correct and the given database/database username and password might not be correct.

      Make sure when creating the database user in MySQL to save the password.

Hi @johantwelli1,

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

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.