Index.php downloads the file instead of showing it
Stack Overflow for Teams — Collaborate and share knowledge with a private group. 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. Improve this question. Community Bot 1.
Add a comment. 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. 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. Worked by doing following:- In [domain]. Giacomo Tom 4, 6 6 gold badges 32 32 silver badges 49 49 bronze badges. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 11 years, 9 months ago.
Active 18 days ago. Viewed 56k times. Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Matt Grannary Matt Grannary 2 2 silver badges 6 6 bronze badges.
This worked for me as well macOS Sierra. The odd thing is, I encountered this problem when switching from Mamp 3. Cez Cez 4, 1 1 gold badge 23 23 silver badges 36 36 bronze badges. I've tried that and again, just now to no avail.
My httpd. My problem is that, despite the problematic line mentioned in my question being removed, I'm still having problems. It's like the server has cached the.
Please added emphasis to my question for clarification. Ivan Ivan 21 2 2 bronze badges. Sanaulla Sanaulla 7 7 silver badges 10 10 bronze badges.
Dongato Dongato 21 3 3 bronze badges. The fix for me was to purge the cache on Cloudflare. Alex M Alex M 76 6 6 bronze badges. David Brown David Brown 7 7 bronze badges. Stack 1 1 silver badge 10 10 bronze badges. IslamTaha IslamTaha 5 5 silver badges 13 13 bronze badges. I was struggling with the issue for long time, and these steps worked for me. I installed PHP with homebrew on Mac, in my case php-fpm service was not running.
AamirR AamirR 10k 3 3 gold badges 50 50 silver badges 66 66 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. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer.
Linked 1. Try with all browser extensions or add-ons temporarily disabled. This reply was modified 2 years, 4 months ago by shahar If no change, it could be the browser. Then I suppose something is wrong with your server configuration.
0コメント