WordPress Website Opens a File instead of the page

I’m having this weird issue that started after I requested a new root password change via Digital Ocean panel. Nothing else happens besides that, and as I can see by Cloudflare analytics, it was definitely after that that the problem started.

Basically, when you try to login into ; it asks you to download this file: application/octet-stream

However, if you are logged in, there’s no problem at all. That’s why I only noticed it hours later after a friend sends me an email.

I have tried: - Reinstall the core files of WordPress; - Recreated the htaccess file - Deactivate all the plugins

But nothing seems to work.

Also, I don’t have any line in .htaccess such as: AddHandler application/x-httpd-php70s .php

Can you guys help me with this? Is it possible that changing the password, the server was misconfigured?

Thanks in advance.

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.


I’ve seen this with caching plugins, and as the site is working when you are logged in it makes me think that it could be caching in your case as well, as while you are logged in the caching is not active.

I would recommend trying to completely disable your cache plugin and manually clear your cache folder and then test this again with an incognito browser.

Hope that this helps! Regards, Bobby