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

Why does my php file download instead of executing

Hi,

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

thanks

 

2 REPLIES 2

Re: Why does my php file download instead of executing

Any ideas? having the same problem..

Super User III
Super User III
Solution

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
* Please note that I offer free advice on this forum. I DO NOT answer private messages. 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