Wordpress site downloads php file instead of opening






















Bluehost is my domain provider and I tried to go in through that account, but still nothing opens, other then files are downloading onto my computer. The page I need help with: [ log in to see the link]. Looks like your index. Replace that from your last good backup and see what happens.

How do I do that? If you are not sure which operating system is installed on your system, then you can run both of the commands to check which one works for you. There is no harm in it. Then you might need to check if you have any cache plugins installed in your WordPress. If somehow your admin panel is also causing the same issue, then you need to remove the plugins manually from the file manager or from SSH.

If it solves your issue, then you need to check or ask in the forum of the respected plugin for the solution or you can try any other plugin for the cache.

If this still not solves your issue, then enable your cache plugin again and move to the next method. If you are on apache based server then you need to remove some of the lines which start with addHandler from your. Login to your file manager or SSH just like in the previous step and open your. If you are using SSH then you can use Vi or Nano text editor commands to edit the file and remove any of the files which resemble the one given below.

If you have any of these lines in your. In simple words, it instructs apache to execute any. If removing addHandler codes from your. This is the default WordPress file which comes at the time of WordPress installation. Whichever file or files you put your config in. The relevant part being Show 4 more comments. Active Oldest Votes. Jack M. Joy, tried your suggestion but it didn't worked.

For php7. Show 10 more comments. I think the restart and incognito mode helped me. Thank a ton for the noobness we can do. Thanks a lot. This made it for me, also after hours trying a lot of other solutions suggested. It was strange to me that my site worked on IE and chrome while in mozilla it downloded the site intead of executing it.

It was mozilla's cache fault. You saved my time bro. Show 1 more comment. If you're using PHP 7. AndrewFox- my filename is php7. M Arfan M Arfan 3, 4 4 gold badges 24 24 silver badges 43 43 bronze badges.

I tried this didn't work for me, I'm using ubuntu Add a comment. So here are my 2 cents, nginx is a web server and not an application server and thus, it can only serve static pages.

This is where common gateway interface CGI comes in. It's a piece of software that manages this communication. Nice explainer. I had the same issue and none of the answers solved the problem. Nice touch to include the test-command syntax in addition to an advice to fix the issue. This workded for me. Slimx Slimx 85 1 1 silver badge 4 4 bronze badges.

For me it helped to add? If your website is hosted on a shared hosting provider, then I recommend you to contact the support and share the issue with them. This command will work on all Linux hosting i. If your wp-admin panel is still opening, try deactivating and deleting the cache plugin from there. If uninstalling the cache plugin will not solve this issue for you, then again activate the cache plugin and move to the third step here.

These lines are addHandler code which is generally added in cPanel based servers and hosting. This is a default WordPress.



0コメント

  • 1000 / 1000