PHP file downloading instead of parsing and displaying

Status
Not open for further replies.

mattdahe

New Member
Messages
6
Reaction score
0
Points
1
For a while, my webpage, index.php under gmodload, displayed properly, parsed and all that. Recently, instead of displaying the page, it has downloaded the raw php file, including sensitive data for getting api data. If you browse to <directory>?tag=data&anothertag=moredata etc, you download a file called "download" with the raw php page within. Going to <directory>/index.php?tag=data&anothertag=moredata etc, you download the raw index.php file instead of returning the html that the page is supposed to display. I submitted another post here a while ago which ended up in a permissions problem. The file has not changed permissions since I fixed it according to that post, and I am pretty sure that the php would return a valid html file upon parsing. I'm not sure what's going on, as it was working for a while than stopped so any help would be awesome.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi mattdahe,

This was being caused by a malformed line in your .htaccess file. I have now corrected this line, and your site is now loading. :)

Thank you,
 

mattdahe

New Member
Messages
6
Reaction score
0
Points
1
Hi mattdahe,

This was being caused by a malformed line in your .htaccess file. I have now corrected this line, and your site is now loading. :)

Thank you,
Just wondering, what was the corrupted line, in case I run into the problem again
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi mattdahe,

Your .htaccess file contained a line that changed the default application handler to x-httpd-php. However, on our free hosting servers, the PHP handler is x-httpd-lsphp instead, which was causing the downloads. ;)

Thank you,
 
Status
Not open for further replies.
Top