error loading wordpress

I just installed wordpress on my LEMP server. When I attempted to access it to set it up via Firefox browser it came back with the the following popup:

You have chosen to open:
which is: application/octet-stream (420 bytes) from

Before installing wordpress I set up a test site with all of the components of the LEMP server. I had configured my firewall for https and had acquired my SSL certificates. This site worked perfectly.

Given that my test site worked properly, the problem has to be in the wordpress installation. To install wordpress, I followed the instructions in the tutorial “How to Install WordPress with LEMP on Ubuntu 18.04” to the letter.

Does anyone have an idea what went wrong and how to fix it?

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.

Bobby Iliev
Site Moderator
Site Moderator badge
July 25, 2019
Accepted Answer


I believe that something is not correct with the Wordpress Nginx server block, would you mind sharing the Nginx configuration file here so that I could have a look and advice you further?

Regards, Bobby

[Example link](file:///etc/nginx/sites-available/wrkblock) Never tried using this link before so I’m not sure it will work. As a backup, I’ll simply copy the file contents below. Please let me know if the file got attached.

server {

listen 443 ssl; # managed by Certbot
listen [::]:443 ssl ipv6only=on; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

root /var/www/wordpress;
index index.html index.htm index.php;


location / {
    try_files $uri $uri/ /index.php$is_args$args;

location ~ \.php$ {
	include snippets/fastcgi-php.conf;

location = /favicon.ico { 
    log_not_found off; access_log off; 

location = /robots.txt { 
    log_not_found off; 
    access_log off; allow all; 

location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
    expires max;
    log_not_found off;


server { if ($host = { return 301 https://$host$request_uri; } # managed by Certbot

if ($host = {
   return 301 https://$host$request_uri;
} # managed by Certbot

listen 80 default_server;
listen [::]:80 default_server;

return 404; # managed by Certbot


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel