Not a member of Pastebin yet? Sign Up , it unlocks many cool features! There might be several ways to fix PHP file download problem, however, Now simply save the file and reload your website, it should work fine now! OS is windows 7. 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 23 23 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 61 61 bronze badges.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Podcast An oral history of Stack Overflow — told by its founding team. Millinery on the Stack: Join us for Winter Summer? Bash, ! Featured on Meta. New responsive Activity page. Related 0. Hot Network Questions. Question feed. Sign Up. Yes, I'm sure. You previously marked this answer as accepted. Are you sure you want to unaccept it?
DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Posted July 18, I set cgi. 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. Thank you, anyways! Does the server have any cache modules loaded?
Yes, the "5" was left in by accident — Cez. How could I clear these caches? Would any of these cause this problem? Simply renaming the file, trying to access it by the old name, and then renaming it again as you described worked like a charm.
Thank you! StefaDesign StefaDesign 6 6 silver badges 16 16 bronze badges. Work around was to remove the line.
0コメント