Click here to get back home

Same error as many......

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Same error as many...... art@unsu.com 06-02-2008
Get Chitika Premium
Posted by art@unsu.com on June 2, 2008, 10:57 am
Please log in for more thread options

Hi,

I am running PHP 4.3.9 and Apache 2.0.52.

This is the error: an unknown filter was not added: PHP

I've read over 40 suggestions with no luck. Can anyone help? I am
running Cent-OS. does anyone need to see my config files?

Anything would help....

Thank you.....




Posted by Rik Wasmus on June 2, 2008, 11:30 am
Please log in for more thread options
art@unsu.com wrote:
> Hi,
>
> I am running PHP 4.3.9 and Apache 2.0.52.
>
> This is the error: an unknown filter was not added: PHP
>
> I've read over 40 suggestions with no luck. Can anyone help? I am
> running Cent-OS. does anyone need to see my config files?
>
> Anything would help....

If only you told us what you did & didn't do.....

Long story short, what usually solves everything:
- load the PHP module (LoadModule php4_module modules/libphp4.so)
- just use a proper AddType application/x-httpd-php .php
- remove ALL SetInputFilter PHP & SetOutputFilter PHP's from your Apache
config.

When in doubt, remove ALL references to PHP in your Apache config, and
just follow the manual:
http://www.php.net/manual/en/install.unix.apache2.php
--
Rik Wasmus
...spamrun finished

Posted by art@unsu.com on June 2, 2008, 11:48 am
Please log in for more thread options
> a...@unsu.com wrote:
> > Hi,
>
> > I am running PHP 4.3.9 and Apache 2.0.52.
>
> > This is the error: an unknown filter was not added: PHP
>
> > I've read over 40 suggestions with no luck. Can anyone help? I am
> > running Cent-OS. does anyone need to see my config files?
>
> > Anything would help....
>
> If only you told us what you did & didn't do.....
>
> Long story short, what usually solves everything:
> - load the PHP module (LoadModule php4_module modules/libphp4.so)
> - just use a proper AddType application/x-httpd-php .php
> - remove ALL SetInputFilter PHP & SetOutputFilter PHP's from your Apache
> config.
>
> When in doubt, remove ALL references to PHP in your Apache config, and
> just follow the manual:http://www.php.net/manual/en/install.unix.apache2.php
> --
> Rik Wasmus
> ...spamrun finished

Here is what I put into my APACHE config file:

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

AddType application/x-httpd-php .php .php3 .php4 .phtml
AddType application/x-httpd-php4-source .php

Probably do not need them both, but I am trying anything. And, I
tried over 20 different suggestions......and nothing has removed the
warning yet........

Thanks.

Posted by Rik Wasmus on June 2, 2008, 11:54 am
Please log in for more thread options
art@unsu.com wrote:
>> a...@unsu.com wrote:
>>> Hi,
>>> I am running PHP 4.3.9 and Apache 2.0.52.
>>> This is the error: an unknown filter was not added: PHP
>>> I've read over 40 suggestions with no luck. Can anyone help? I am
>>> running Cent-OS. does anyone need to see my config files?
>>> Anything would help....
>> If only you told us what you did & didn't do.....
>>
>> Long story short, what usually solves everything:
>> - load the PHP module (LoadModule php4_module modules/libphp4.so)
>> - just use a proper AddType application/x-httpd-php .php
>> - remove ALL SetInputFilter PHP & SetOutputFilter PHP's from your Apache
>> config.
>>
>> When in doubt, remove ALL references to PHP in your Apache config, and
>> just follow the manual:http://www.php.net/manual/en/install.unix.apache2.php
>> --
>> Rik Wasmus
>> ...spamrun finished
>
> Here is what I put into my APACHE config file:
>
> <Files *.php>
> SetOutputFilter PHP
> SetInputFilter PHP
> </Files>

[quote]remove ALL SetInputFilter PHP & SetOutputFilter PHP's from your
Apache config[/quote]

Go forth & do so, it shouldn't be that hard. Just let does lines down
easily, gently push them to /dev/null, promising them a graceful
retirement, tell them their work is over now, and never think of them again.

--
Rik Wasmus
...spamrun finished

Posted by Rik Wasmus on June 2, 2008, 11:59 am
Please log in for more thread options
art@unsu.com wrote:
>> a...@unsu.com wrote:
>>> Hi,
>>> I am running PHP 4.3.9 and Apache 2.0.52.
>>> This is the error: an unknown filter was not added: PHP
>>> I've read over 40 suggestions with no luck. Can anyone help? I am
>>> running Cent-OS. does anyone need to see my config files?
>>> Anything would help....
>> If only you told us what you did & didn't do.....
>>
>> Long story short, what usually solves everything:
>> - load the PHP module (LoadModule php4_module modules/libphp4.so)
>> - just use a proper AddType application/x-httpd-php .php
>> - remove ALL SetInputFilter PHP & SetOutputFilter PHP's from your Apache
>> config.
>>
>> When in doubt, remove ALL references to PHP in your Apache config, and
>> just follow the manual:http://www.php.net/manual/en/install.unix.apache2.php
>> --
>> Rik Wasmus
>> ...spamrun finished
>
> Here is what I put into my APACHE config file:

>
> AddType application/x-httpd-php .php .php3 .php4 .phtml
> AddType application/x-httpd-php4-source .php

Euhm, it should be:

AddType application/x-httpd-php4-source .phps

..(if you want it, I never use it, I have an editor with better syntax
highlighting). and NOT (I repeat NOT):

AddType application/x-httpd-php4-source .php

... which essentially tells Apache to display the source of all your PHP
files, in a nicely formatted & syntax highlighted manner....
--
Rik Wasmus
...spamrun finished

Similar ThreadsPosted
xmlrpc error faultCode 105 faultString XML error: Invalid document end at line 1, column 1 October 1, 2007, 10:38 am
STRANGE "Fatal error: Call to undefined function..." ERROR May 15, 2005, 3:00 pm
newbie error : syntax error, unexpected T_INC, expecting ')' July 16, 2005, 2:36 pm
Parse error: syntax error, unexpected $end in ... Question/Suggestion April 7, 2006, 1:01 pm
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' July 4, 2007, 5:29 pm
CGIWrap error: exec format error July 14, 2004, 2:04 pm
Redirect Error Reported As SQL Syntax Error January 8, 2005, 4:45 pm
Date in Apache2's error log when error caused by PHP April 4, 2005, 7:51 pm
Understanding error masking in error handling... November 7, 2008, 3:41 am
Parse error: parse error, unexpected T_ELSE in /home/duivensites.com/public_html/promotiesite/subpagina/winkel.php on line 25 December 28, 2004, 4:56 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap