I went through the Wordpress installation process and I'm getting the Apache2 Ubuntu Default Page when I go to my ip. What did I do wrong?
Wordpress is installed in
/var/www/html. My URL is
dancer.ly and my IP is 127.0.0.1. Thanks!
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You are most likely installing WordPress under the wrong path. You have the following options:
Move the files: Copy all the WordPress files from where ever you installed it to
Change the path used by apache: change the
DocumentRoot in the file
/etc/apache2/sites-available/000-default.conf to the path where you installed WordPress.
Create a new vHost: Create a new vHost, by adding another site. Copy the
/etc/apache2/sites-available/000-default.conf to something like
/etc/apache2/sites-available/wordpress.conf and edit it to make your changes. You can than either use a
ServerName, to access the server through an URL (for example by adding it to your
/etc/hosts file), or disable the default host with
a2dissite 000-default. Than you need to enable your new site with
a2ensite wordpress (Change wordpress to whatever you named the conf file).
When you change the path or create a new vHost you need to restart apache:
Maybe you also left the index.html in the directory
/var/www/html when installing WordPress. Apache searches for the
index.html before it searches for the
index.php. So you should simply delete it
I just had the same problem as the OP. What solved it for me was clearing my browser's cache actually. I even deleted the
index.html file from any directory including and under
/var/www/html, and it still showed up in my browser when I navigated to my server's IP.
That is due to multiple index files, like
All you need to do is to delete the
index.html page in the /var/www/html folder, clear cache and reload the page, it should fix the issue.