Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution

Why does my php file download instead of executing


In the last few days my php files started to download instead of executing. Anyone else had this problem and managed to fix it?




Re: Why does my php file download instead of executing

Any ideas? having the same problem..

Super User III
Super User III

Re: Why does my php file download instead of executing

Hello there,


This is normally due to an improper handler code. In the .htaccess file, you will want to ensure the handler code matches your version of php. If it does not, the php files may try to download instead of process. 


The line of code will look something like this: AddHandler application/x-httpd-php52 .php


The PHP version might be different. Try disabling your .htaccess file and see if that helps. You can also try changing the PHP version as well. 



I am a GoDaddy End User - Just Like You
Check out my site! | I drink and I know things. Especially about websites and web hosting.
* Please note that I offer free advice on this forum. If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

Once your issue is resolved,
please be sure to come back and click accept for the solution

Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community