It seems that your browser does not have Javascript enabled. Message Too Old, No Replies browser asking me to download php files. 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. From experience, I'll just note that you need to be careful with the tools used to edit conf files Editing Apache httpd. Details here: [ webmasterworld. Traffic Steady, Earnings and Impressions Down? Mihkel Mihkel 6 6 silver badges 2 2 bronze badges.
Could you add some info where to put these lines? For people looking for where to put these lines. In my case , on Apache This works, adding d part to x-http-php like on your post works! 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 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. Peter Debik Plesk addicted! Plesk Guru. Thanks for your suggestion, however, that's not the issue, it does not work either way. There are no error messages at all in any log file. And also the phpinfo test file works perfectly fine in any other domain.
As mentioned earlier, the funny thing is that index. For testing purposes, I renamed the original index. I restarted the apache service as well as the browser private browsing to avoid caching issues , same thing, nothing changed. I also tried different browsers and removed the.
Please advise. Last edited: May 15, Does the domain have such a file? Think Peter nailed it with the PHP handler suggestion. Check the. Jan Bludau Basic Pleskian. PHP files are downloaded instead of executing. Jan Bludau said:. Click to expand You must log in or register to reply here. Similar threads J.
0コメント