Current time: 04-27-2024, 04:52 AM Hello There, Guest! (LoginRegister)


Post Reply 
Apache tries to run .php.html files through fastcgi
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #1
Apache tries to run .php.html files through fastcgi
Hi guys,

I've a problem on one of my servers, and I'm getting mad trying to understand why it happens and how to solve it.

The thing goes as follows: I've a website which (weirdly) has files such as "dvd.php.html". Ovbiously, my intuition is that these files should be handler by apache as normal .html files, whereas, in fact, it is sending them through fcgid. Moreover, it tries to run them as fcgid handlers, as can be seen in the suexec.log files:
Code:
[2009-07-01 10:22:27]: uid: (2162/vu2162) gid: (2162/vu2162) cmd: dvd.php.htm
[2009-07-01 10:22:27]: directory is writable by others: (/var/www/virtual/passatsdecanto.com/htdocs)

Normal "php" files get executed through the ispcp-defined handler, as they should be. In these cases, the logfile looks like:
Code:
[2009-07-01 11:41:47]: uid: (2126/vu2126) gid: (2126/vu2126) cmd: php5-fcgi-starter

So, my question is: how the hell can I tell apache that "*.php.htm" are NORMAL html files and should be server as usual? Further, why is it willing to send them through fastcgi in the first place?

Thanks y'all!

For completeness, here are the system specs and the other related logfiles:

System:
Code:
Debian Lenny 32bits
IspCp 1.0 stable
Fcgid

/var/log/apache2/users/domain.com-error.log:
Code:
[Wed Jul 01 10:22:30 2009] [notice] mod_fcgid: process /var/www/virtual/domain.com/htdocs/dvd.php.htm(30373) exit(communication error), terminated by calling exit(), return code: 116
(This post was last modified: 07-01-2009 07:44 PM by kilburn.)
07-01-2009 06:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Apache tries to run .php.html files through fastcgi
Just a short brainstorming!
You can try to add an Handler in a .htaccess File like this:

Code:
AddType application/x-httpd-php .html .php .htm
addhandler application/x-httpd.php .html .php

Greez BeNe
07-01-2009 06:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #3
RE: Apache tries to run .php.html files through fastcgi
That would probably force apache to send ".php.htm" files through the php-handling fcgid server, but it's not what I want. I just need ".php.htm" files to be handled as what they are, normal html files that should be served by apache itself!
07-01-2009 07:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)