Why is chrome downloading index.php files
Chrome wants to download index. Asked 10 years, 6 months ago. Active 10 years, 6 months ago. Viewed 5k times. Improve this question. Community Bot 1 1 1 silver badge. Gaurav Dadhania Gaurav Dadhania 4, 8 8 gold badges 39 39 silver badges 59 59 bronze badges. This question stackoverflow. That did it! Can you please add it as an answer so I can give you the karma you deserve good Sir!
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 12 12 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. Apeiron Apeiron 1, 2 2 gold badges 11 11 silver badges 21 21 bronze badges. That's all we can tell you though since you didn't show us any of your config.
Thanks Brad — Apeiron. Whichever file or files you put your config in. The relevant part being Show 4 more comments. Active Oldest Votes. Improve this answer.
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.
Create a free Team What is Teams? Learn more. Why is the index. Ask Question. Asked 7 years, 6 months ago. Active 1 month ago. Viewed 84k times. I also tried these solution on the same problem but they didn't work for me. Community Bot 1. Add a comment. Active Oldest Votes. Can't believe I spent an hour on this.. Just saved me from endless headache — stevendesu. You are a life saver!! Show 1 more comment.
0コメント