Millinery on the Stack: Join us for Winter Summer? Bash, ! Featured on Meta. New responsive Activity page. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Goshiana permalink. Udayan Sikdar permalink. Sebastian Soldan permalink. Mahargha Mohanta permalink. Human 2. Haribabu permalink.
Stephanie Rodgers permalink. Click here to cancel reply. About This is an incoherent and mostly uninteresting collection of posts on a variety of topics. I've configured php from source — Liso. Add a comment. So here is another possible cause: If you have something like AddHandler x-mapp-php6. 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 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 It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. This happens on Firefox too. It's not my network problem because this doesn't happen with any other sites. Also might be a virus or program you installed that open gzip so the browsers think they should download it.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Browsers download the pages instead of displaying them [closed] Ask Question. This would cause the server to burp at every PHP request thereafter and attempt to serve the file instead of handle it. The solution, then, was to manually remove the handler that was automatically added to the.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Browsers try to download html file instead of opening Ask Question. Asked 6 years, 11 months ago. Active 3 years, 4 months ago.
Viewed 33k times.
0コメント