|
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
|