Browser downloading index.php






















Your fix got us back online thanks bunches! Skip to content. This was a question asked to us by one of our readers and he wanted to know how to solve it. Now as I know I have tried: Renaming my theme to old-[name-of-theme] Renaming plugin folder to old-plugins to disable them all Clearing the cache for Firefox, Safari, and Chrome.

Nothing worked. But I got my solution. For those who are not programmers for them follow the steps below: Open and edit. Conclusion The reason why your index. So just edit your. Post navigation Previous Previous. Next Continue. Leave a Reply Cancel reply Your email address will not be published. This code overwrites everything to make wordpress work as normal like before.

Thank you for your time and valuable feedback. Regards Niraj. Get blogging secrets sent to your Email. Join , Community Members of Active Bloggers who are using this simple yet secret method to grow their traffic without using any premium SEO services or tools.

Subscribe Now. Do you want to Learn WordPress? Alok Yadav Alok Yadav 6 6 bronze badges. See: stackoverflow. My location block is identical to this, except with include fastcgi. Sanaulla Sanaulla 3 3 bronze badges. Melebius Samson Galin Samson Galin 1 1 1 bronze badge.

There can be two reasons Misconfiguration on the server. Fix the configuration and clear the cache of the browser. Browser cache. The solution is as simple as clearing the browser cache. Artur Meinild 4, 6 6 gold badges 15 15 silver badges 36 36 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. I had the some problem but found the culprit. If anyone else has the same issue, look for. I had an. It was forcing a version of PHP that was not installed on my local machine.

Thus the virtual host wasn't executing the PHP file properly. This is almost certainly the problem if some sites work and others don't. Show 1 more comment. After struggling a lot I finally solved the problem. But If you are still getting the error : Config file php5. Ravi Shankar Ravi Shankar 1 1 silver badge 5 5 bronze badges.

Note that this only works under Linux and specifically Debian Linux. Please take a look at your addtype directives. Clearing your browser cache is always a good idea. AddHandler php5-script. DirectoryIndex index. Sam Azer Sam Azer 3 3 bronze badges. The problem here is that PHP is not being run correctly somehow, or the wrong headers are being sent Note the last AddType directive which is commented out in the above example, causes a.

Is it possible that your Apache configuration is pretty-printing. You can begin installation of modules like, sudo apt-get install libapache2-mod-php7. Noushad Noushad 4, 3 3 gold badges 22 22 silver badges 27 27 bronze badges. Thanks to all!!! Ladislao Garcia Ladislao Garcia 62 2 2 bronze badges. Take care of browser cache too. My system : Ubuntu Do NOT set it to On as it prevents.

In case someone is using php7 under a Linux environment Make sure you enable php7 sudo a2enmod php7 Restart the mysql service and Apache sudo systemctl restart mysql sudo systemctl restart apache2. MedoAlmasry MedoAlmasry 3 3 silver badges 18 18 bronze badges. Jeffrey Bosboom Craig Smilovitz Craig Smilovitz 13 3 3 bronze badges. Marouen Mhiri Marouen Mhiri 1, 1 1 gold badge 13 13 silver badges 20 20 bronze badges. The conclusion If I commented these two lines out in my.

The entire story I have VirtualMin installed on an Ubuntu I tried all kinds of stuff: Removed PHP7. Tried enabling and disabling apache modules, on the existing installation, but without luck.

Then I removed apache completely and installed it again, where-after the problem was still there! And I found the module name by Googling around. I had to active about modules, before I got past that step in the validation - and it took a couple of minutes before the cache ran out, - so doing this was a tedious step. And lastly, I figured out above-written conclusion - together with the symlinks, - and then I got it to work.

I had to go through it for every site on my VPS, though. Zeth Zeth 1, 2 2 gold badges 29 29 silver badges 59 59 bronze badges. Dia Dia 1 1 gold badge 2 2 silver badges 15 15 bronze badges. TomoMiha TomoMiha 1 1 gold badge 11 11 silver badges 11 11 bronze badges. I had constructed a test. Slip Slip 1 3 3 bronze badges. If none of the above works, try commenting out the line SetHandler Arun Panneerselvam Arun Panneerselvam 1, 1 1 gold badge 15 15 silver badges 21 21 bronze badges.

Then I check PHP is enabled. I check installed PHP packages. I think this will help anyone. Janaka Pushpakumara Janaka Pushpakumara 4, 3 3 gold badges 23 23 silver badges 30 30 bronze badges. Black Black 14k 29 29 gold badges silver badges bronze badges.

When i upgraded from PHP 7.



0コメント

  • 1000 / 1000