You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Smith <jo...@yahoo.com> on 2003/10/06 09:11:09 UTC

[users@httpd] Re: unknown filter was not added: PHP

I added this to conf.d/php.conf:

     AddOutputFilter PHP php
     AddInputFilter PHP php

/var/log/httpd/error_log now prints lowercase 'php'
too:

[error] an unknown filter was not added: PHP
[error] an unknown filter was not added: php

Here's my conf.d/php.conf (I don't see any PHP stuff
in httpd.conf):

LoadModule php4_module modules/libphp4.so
#LoadModule php4_module libexec/libphp4.so

#
# Cause the PHP interpreter handle files with a .php
extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
                AddOutputFilter PHP php
                AddInputFilter PHP php
</Files>

#
# Add index.php to the list of files that will be
served as directory
# indexes.
#
DirectoryIndex index.php

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps


John


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Hi

This is a PHP config issue. We ran into these messages
when we switched 
from Apache httpd 1.3 to 2.0.

Here's a working config snippet for httpd 2.0 and PHP
4.x:

...
LoadModule php4_module modules/libphp4.so
...
<IfModule sapi_apache2.c>
     AddOutputFilter PHP php
     AddInputFilter PHP php
</IfModule>
...

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: unknown filter was not added: PHP

Posted by Dennis Lundberg <de...@mdh.se>.
Hello again

You need to remove these two lines:
     SetOutputFilter PHP
     SetInputFilter PHP

The Add*Filter lines replaces the Set*Filter lines.

John Smith wrote:

> I added this to conf.d/php.conf:
> 
>      AddOutputFilter PHP php
>      AddInputFilter PHP php
> 
> /var/log/httpd/error_log now prints lowercase 'php'
> too:
> 
> [error] an unknown filter was not added: PHP
> [error] an unknown filter was not added: php
> 
> Here's my conf.d/php.conf (I don't see any PHP stuff
> in httpd.conf):
> 
> LoadModule php4_module modules/libphp4.so
> #LoadModule php4_module libexec/libphp4.so
> 
> #
> # Cause the PHP interpreter handle files with a .php
> extension.
> #
> <Files *.php>
>     SetOutputFilter PHP
>     SetInputFilter PHP
>     LimitRequestBody 524288
>                 AddOutputFilter PHP php
>                 AddInputFilter PHP php
> </Files>
> 
> #
> # Add index.php to the list of files that will be
> served as directory
> # indexes.
> #
> DirectoryIndex index.php
> 
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
> 
> 
> John
> 
> 
> 
> 
> Hi
> 
> This is a PHP config issue. We ran into these messages
> when we switched 
> from Apache httpd 1.3 to 2.0.
> 
> Here's a working config snippet for httpd 2.0 and PHP
> 4.x:
> 
> ...
> LoadModule php4_module modules/libphp4.so
> ...
> <IfModule sapi_apache2.c>
>      AddOutputFilter PHP php
>      AddInputFilter PHP php
> </IfModule>
> ...
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

-- 
Dennis Lundberg, Utvecklingsledare, IT-avdelningen
e-post: dennis.lundberg@mdh.se
http://www.mdh.se/personal/VisaPerson?fornamn=Dennis&efternamn=Lundberg
tel: +46-(0)21-101516, fax: +46-(0)21-101636
Mälardalens högskola, Box 883, SE-72123 Västerås, SWEDEN


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org