# Ok I moved one of my...

**URL:** <https://forums.interworx.com/t/ok-i-moved-one-of-my/9625>\
**Category:** General Discussion\
**Created:** [April 11, 2005, 3:39pm UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625 "2005-04-11T15:39:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [April 11, 2005, 3:39pm UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625/1 "2005-04-11T15:39:10Z")

</div>

Live data sites with no real problem except for the fact that my damn netgear router died about the time I did it keeping me off of the net pretty much since saturday.

On the existing site I have the following in a .htaccess file,

\<Files dbn\>  
AcceptPathInfo on  
SetOutputFilter PHP  
SetInputFilter PHP  
\</Files\>

On the new site it does not recognize “dbn” as a php file and just spits it out as text.

Do I need to do it differently in the new setup, perhaps in the site http vitrual host config?

---

<div class="post-metadata">

**Author:** ![Justec](https://forums.interworx.com/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@Justec](https://forums.interworx.com/u/Justec)\
**Post date:** [April 11, 2005, 8:30pm UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625/2 "2005-04-11T20:30:44Z")

</div>

In the virtual host you probably need to change the AllowOveride to incdlue the .htaccess file.

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [April 12, 2005, 7:03am UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625/3 "2005-04-12T07:03:22Z")

</div>

its reading the .htaccess file, I’ve got a directoryindex with “dbn” as the first file, which it processes. It just does not recognize it as php which it should as far as I  
can tell.

In addition I tried adding it to the virtualhosts http file and that did not work either.

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [April 12, 2005, 12:49pm UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625/4 "2005-04-12T12:49:17Z")

</div>

It looks like the error is caused because PHP is being invoked as a cgi program under the interworx configuration and thus needs

\<Files dbn\>  
SetHandler application/x-httpd-php  
\</Files\>

Instead of the above.

Is there any reason for invoking php in this manner and are there any performance/server implications as a result?

Thanks…

---

<div class="post-metadata">

**Author:** ![Paul](https://forums.interworx.com/user_avatar/forums.interworx.com/paul/32/6_2.png) [@Paul](https://forums.interworx.com/u/Paul)\
**Post date:** [April 12, 2005, 2:20pm UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625/5 "2005-04-12T14:20:33Z")

</div>

Hi Bluesin,

PHP isn’t being invoked as a cgi program under the interworx configuration. You can confirm this by creating a php page and using the [php\_sapi\_name](http://us3.php.net/php_sapi_name) php function (see the example on the doc page).

I believe the SetHandler application/x-httpd-php syntax is a requirment of the newer Apache version, that’s all.

Paul

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [April 12, 2005, 2:39pm UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625/6 "2005-04-12T14:39:04Z")

</div>

Hmmmm, that is the way it was done when PHP was accessed as a CGI program, perhaps the

\<Files dbn\>  
AcceptPathInfo on  
SetOutputFilter PHP  
SetInputFilter PHP  
\</Files\>

Is no longer applicable?

I was thinking along those lines also, especially since I know I’m not invoking it as a cgi program and I do not see a redirect or any sort that would do it either and could not figure out what was going on.

The directive

\<Files dbn\>  
SetHandler application/x-httpd-php  
\</Files\>

Is documented in the Express Engine Manual as the setting required for PHP as CGI, I just tried it on a whim, and it worked.

So your thinking that they basically just did away with the output and input filter method?

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [April 12, 2005, 3:05pm UTC](https://forums.interworx.com/t/ok-i-moved-one-of-my/9625/7 "2005-04-12T15:05:59Z")

</div>

I checked the change logs and don’t find it anywhere.

I’m thinking that perhaps sometime recently PHP was changed from being invoked through a filter to a handler?
