Browser keeps downloading php files
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? Give me the Free Resources. Get the Resources. By Niraj From BloggerSprout. You are Now Subscribed to our Mailing List! Toggle Menu Close. Home Blog Expand child menu Expand. Msg New User joined:Aug 10, posts votes: 0. Senior Member joined:Mar 31, posts votes: 0. Look at all instances of AddHandler and AddType directives in your httpd.
Hi Jim Thanks for responding. That HTTP Header report wasn't useful, since the server returned a Not Modified response because you didn't flush your browser cache before doing the test , so the 'page' was served from the browser cache instead of from your server. I've tried posting on the MAMP forum, but to no avail.
Preferred Member joined:July 25, posts votes: 0. That's very interesting because by the time the file gets to your browser, it is an HTML file, not a php file. Only Apache is responsible for "caring" that it's PHP. Hi Steve, Thanks for your help so far.
Take a look at the Apache AddHandler directive documentation. That is the only "solid ground" in this whole scenario. As I stated, "hooking up" PHP to Apache has always been somewhat of a kludge, and that's what you're fighting. Administrator joined:July 31, posts votes: 6. I really can't offer much more here myself except for what has already been mentioned. Are you sure you want to replace the current answer with this one?
Hollie's Hub for Good Supporting each other to make an impact. Write for DigitalOcean You get paid, we donate to tech non-profits. Please help. Besides the www. These answers are provided by our Community.
If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others. You can type! Your config file looks proper. I have this issue too… Same config… My droplet is www. 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 64 64 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 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.
0コメント