HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   [error] an unkown filter was not added: PHP (http://www.howtoforge.com/forums/showthread.php?t=236)

Arien 11th August 2005 19:54

[error] an unkown filter was not added: PHP
 
Hi all!

I have installed ISPConfig following the Perfect Setup - Debian Sarge guide, but for now I'm having certain problems with my server.

One of them is this:

On /var/log/apache2/error.log I see that it's plenty of errors like

[Thu Aug 11 17:27:37 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 17:27:37 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 17:27:42 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 17:27:42 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 18:27:05 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 18:27:05 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 18:27:52 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 18:27:52 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 18:27:54 2005] [error] an unknown filter was not added: PHP
[Thu Aug 11 18:27:54 2005] [error] an unknown filter was not added: PHP


So I wonder if I make any mistake in the guide or just a common problem with apache2 and php4...

I have googled a bit and found something about:

"Regardless, you should replace those <Files *.php> with

AddType application/x-httpd-php .php

and similarly for .php3 etc."

But I couldn't see anything of this on php.conf ...

Can anybody help me?

Thanks and sorry for my english.

falko 11th August 2005 20:11

Is the PHP module enabled in your Apache?

Try this:
Code:

cd /etc/apache2/mods-enabled
ln -s /etc/apache2/mods-available/php4.conf php4.conf
ln -s /etc/apache2/mods-available/php4.load php4.load
/etc/init.d/apache2 restart


Arien 11th August 2005 20:14

I found this:

lrwxrwxrwx 1 root root 37 Aug 5 17:35 php4.conf -> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx 1 root root 37 Aug 5 17:35 php4.load -> /etc/apache2/mods-available/php4.load


So I suppose the answer is: yes.

jysse 15th August 2005 09:03

Same problem here
 
I checked those links and they are ok.

lrwxrwxrwx 1 root root 37 Aug 8 20:31 php4.conf -> /etc/apache2/mods-available/php4.conf
lrwxrwxrwx 1 root root 37 Aug 8 20:31 php4.load -> /etc/apache2/mods-available/php4.load


Jysse

error.log:

[Mon Aug 15 08:58:15 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
[Mon Aug 15 08:58:17 2005] [notice] Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Mon Aug 15 08:58:34 2005] [error] an unknown filter was not added: PHP
[Mon Aug 15 08:58:34 2005] [error] an unknown filter was not added: PHP

falko 15th August 2005 12:11

Did you follow the tutorial http://www.howtoforge.com/perfect_setup_debian_sarge step by step? Did you make any changes?

jysse 15th August 2005 13:58

Quote:

Originally Posted by falko
Did you follow the tutorial http://www.howtoforge.com/perfect_setup_debian_sarge step by step? Did you make any changes?

Yes sure, at least I tried to....One thing is that I can't remember what was my actions in error situation. Made a small mistake (typo) and after that a new install and everything went well. Maybe a fresh install would help ? If I have to I will do it, with some instructions how to do it ?

Jysse

till 15th August 2005 14:06

Quote:

Originally Posted by jysse
Yes sure, at least I tried to....One thing is that I can't remember what was my actions in error situation. Made a small mistake (typo) and after that a new install and everything went well. Maybe a fresh install would help ? If I have to I will do it, with some instructions how to do it ?

Jysse

I dont think this "[Mon Aug 15 08:58:34 2005] [error] an unknown filter was not added: PHP" is an serious error, it is just a warning. If PHP is working in your sites created in ISPConfig, i recommend not to reinstall your server.

jmroth 23rd October 2005 22:24

PHP Bug #22881 says: (it is not a bug!)

Quote:

Since 4.3.2RC the default Apache 2 sapi is the apache2handler and is no
longer filter based. Therefor you should use
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

and not

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
So, the error message is nothing really bad and maybe ISPConfig should just look closer at the version of Apache and simply not include those lines in the config file... Using both AddType and Filters makes no sense anyway.

Bruce 15th November 2005 08:24

Disable something in vhosts/Vhosts_ispconfig.conf
 
my mistake

Ivan 6th February 2006 13:24

[error] an unknown filter was not added: PHP
 
I have the same problem, tries:
ln -s /etc/httpd/mods-available/php5.conf php5.conf
ln -s /etc/httpd/mods-available/php5.load php5.load
/etc/init.d/httpd restart
But the problem I am not solved.

If he is not bug like solving it to install an application
My vhost is :
DocumentRoot /var/www/web33/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web33/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web33/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5

AddType application/x-httpd-php-source .phps
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
php_admin_value open_basedir /var/www/web33/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web33/phptmp/
php_admin_value session.save_path /var/www/web33/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web33/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web33/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web33/user/$1/web/$3
</VirtualHost>


All times are GMT +2. The time now is 02:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.