After installing wordpress (LAMP on ubantu 18.04) the wordpress not launching

I followed all the relevant docs and installed LAMP but the word press wont come up! there was a text index.html page to test the Virtual Host that comes up !! but not the wordpress!!

Anyone knows why?

Show comments

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 JacobG,

The index.html was test file created to test the virtual host ( following the recommendation on one the installation document) located here > /var/www/My-Domain/index.html. I deleted the Index.html but now it is a blank page index of / … etc. I did follow this > How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04. All the section were successfully installed ! All section of the installation were successful and no error!

Many Thanks for the reply


Hi @cyruscaviani, what is the full path to the index.html that you’ve removed? Based on your description (removing index.html then seeing a directory listing in your browser instead of the WordPress index.php), it sounds like your domain’s virtualhost may not be correctly configured to point to the directory where you’ve installed Wordpress. You might want to check the Apache virtualhost for this domain (it should be located in /etc/apache2/sites-enabled/) and ensure that the DocumentRoot option is set to the directory where you’ve installed Wordpress.

Hi there @cyruscaviani,

You could try deleting the default index.html file from your document root.

For example if you are using the /var/www/html directory then you have to run:

sudo rm /var/www/html/index.html

After that, your WordPress installation should start loading as normal.

Regards, Bobby