Drew A. Withers kirjoitti:
Chris Smith wrote:
I have a script on my server called 'blah.php.txt' which is being parsed
by suphp as a php file. I don't think it should be because the real
extension is .txt. I'm pretty sure it's suphp as my previous server
wasn't running it and didn't have this problem :)

My apache2/mods-available/suphp.conf file has this handler:

AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml

So to check what was going on, I renamed the file to include the
different php extensions and the same thing happened. I renamed it to
have a non-php extension in the middle (blah.blah.txt) and it didn't happen.

Any suggestions about how to stop this from occurring?

Using the debian package ('Version: 0.6.2-1').


This happens on mine too. I'm using the same debian package (except mine is hacked to fix nfs root squash). I have suphp 0.5.1 on another server and it does the same thing. But when I turn off suphp and just use normal php it gives the code as text. So it clearly is suphp and this isn't a new thing. It is probably in the code.



It's an apache feature. It does the same for .pl files.

Aki Tuomi


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
suPHP mailing list
[email protected]
http://lists.marsching.biz/mailman/listinfo/suphp

Reply via email to