Wordpress doesn't start with installing Wordpress with LEMP on Ubuntu 20.04

Posted September 28, 2020 307 views
UbuntuWordPressConfiguration ManagementLEMPUbuntu 18.04Ubuntu 20.04

As I was following this tutorial, I came a long way. But then after step 5, Wordpress doesn’t start on my website.

The website keeps displaying the html message that I programmed at step 4 of this tutorial, which I installed in this file: /var/www/your_domain/index.html

I have to say that the OS I am using is Ubuntu 20.04 (spec Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-45-generic x86_64)), but I don’t think that the problem is there.

My best guess is that the problem must have something to do with a redirection. Can anyone help me out here? There are also similar questions below the tutorial, but the answers proposed are not working for me.

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.

1 answer

Hi there @KatoVonKatz,

There are a couple of things which could be causing this problem.

  • If you installed WordPress at /var/www/html/, you would need to remove the index.html file from there, you can do that with the following command:
  • rm /var/www/html/index.html

This needs to be done as WordPress uses an index.php file and that index.html is not part of the WordPress core files anyway.

  • Make sure that the directory that you’ve installed WordPress in has the correct ownership:
  • sudo chown -R www-data:www-data /var/www/wordpress

Change the /var/www/wordpress part if this is not the directory where you installed WordPress at.

  • If none of the above helps, check your Nginx error log:
  • sudo tail -100 /var/log/nginx/error.log

Let me know how it goes!

Submit an Answer