filter was not added: PHP error

Discussion in 'Installation/Configuration' started by gilas, Jun 8, 2006.

  1. azidtripz

    azidtripz New Member

    i already modifyed it to AllowOverride All, but that seemed to be of no help

    i also just tried (a) and i still get the same error :S
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you forgot to delete the lines in the .htaccess file.
     
  3. azidtripz

    azidtripz New Member

    yep :S

    also i dont know what i have done but the the access logs "web.log"'s arent recording access anymore, i do not remember changing anything to make this happen.
     
  4. azidtripz

    azidtripz New Member

    please ignore the post above as i was reading the web.log's are generatored once a day from apaches master access log, neat little setup there indeed :), thank you so much for all your help till...
     
  5. mgazelle

    mgazelle New Member

    an unknown filter was not added: PHP

    I have been reading through the posts and tried to apply the fix.
    Unfortunately after the modification of a site, ISPConfig seems to be writing in the backupfile instead of the correct one.
    A new file named Vhosts_ispconfig.conf_31-05-07_14-49-38 was created and has the new settings whereas the file Vhosts_ispconfig.conf is older and has the old settings.
    Any explanation for this?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

  7. mgazelle

    mgazelle New Member

    Thank you for the Link Till.
    I went through it and I run the command httpd -t which gave me the following output: [warn] NameVirtualHost 192.168.1.151:80 has no VirtualHosts

    I checked the apache2.conf file and I can see that it is pointing to the Vhost file however.

    All my sites are working fine.

    Any Idea?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    You will have to do all 3 steps:

    1) Make a backup of /etc/apache2/vhosts/Vhosts_ispconfig.conf
    2) Rename the latest file /etc/apache2/vhosts/Vhosts_ispconfig.conf_.... that has a date appended to /etc/apache2/vhosts/Vhosts_ispconfig.conf
    3) run

    httpd -t
     
  9. mgazelle

    mgazelle New Member

    Hi Till,
    Thank you for the info.
    I did all three steps but it is unfortunately not working.
    I do not understand the messages about the missing vHosts as well.
     
  10. falko

    falko Super Moderator ISPConfig Developer

    What's the output of the
    Code:
    httpd -t
    command?
     
  11. mgazelle

    mgazelle New Member

    Thank you for the message Falko,

    The Output was "[Warn] No Virtual Hosts"

    Renaming the file and running httpd -t did not help to solve the problem, it did however to find out that Apache was not able to find virtualHosts (No Virtual Hosts). This was however strange, because the line from ISPConfig for the VHosts_ispconfig file was in the Apache Config file.

    A closer look to the file, brought out that this directive is twice in place: One time through ISPConfig and one time through the installation of AWStats from the link http://jnsc.de/ispconfig.php

    Furthermore I found out more duplicate entries. By removing them everything went fine and I could even install a lot of packages and plugins for ISPConfig.

    I am now taking a closer look to the framework, which will be my next task to use it through PHP in our sites It is getting exciting

    I would like only to know how can I make ISPConfig accessible through the internet without giving using the address www.mydomain.com:81. My web Sites are running on port 80 and ISPConfig is running on port 81 on the same server. Is it possible to access the Control Panel through the respective Site?

    I hope this post can help others!

    Cheers
     
  12. falko

    falko Super Moderator ISPConfig Developer

    If you want to access ISPConfig on port 80, take a look here: http://www.howtoforge.com/apache_reverse_proxy_ispconfig
     
  13. webcycler

    webcycler New Member

    back to topic

    Well, I did that. And I changed sumthin in a site, so the Vhost_ispconfig.conf was rewritten.
    Still no luck. My error log in /var/log/httpd/ is still getting filled with those lines:
    "[error] an unknown filter was not added: PHP"

    I use CentOS 5.0 and followed the installation tutorial.
    What am I missing??
    :confused:
     
  14. falko

    falko Super Moderator ISPConfig Developer

    Have you checked your Vhosts_ispconfig.conf file if there are still PHP filters in there? What's the output of
    Code:
    ls -la /path/to/Vhosts_ispconifg.conf_directory
    ? What's the output of
    Code:
    ls -la /root/ispconfig
    ?
     
  15. webcycler

    webcycler New Member

    Falko,

    i see this in the Vhosts_ispconfig.conf

    AddType application/x-httpd-php .php .php3 .php4 .php5

    Your requests:

    ls -al /etc/httpd/conf/vhosts/

    -rw-r--r-- 1 root root 4127 Jun 6 23:52 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root 4127 Jun 6 23:52 Vhosts_ispconfig.conf~

    And:

    ls -la /root/ispconfig

    -rwxr-xr-x 1 root root 33079 Jun 2 00:25 cronolog
    -rwxr-xr-x 1 root root 9673 Jun 2 00:25 cronosplit
    drwxr-xr-x 12 root root 4096 Jun 2 00:11 httpd
    drwxr-xr-x 14 root root 4096 Jun 2 00:25 isp
    -rw-r--r-- 1 root root 8 Jun 6 23:52 .old_path_httpd_root
    drwxr-xr-x 6 root root 4096 Jun 2 00:09 openssl
    drwxr-xr-x 6 root root 4096 Jun 2 00:17 php
    drwxr-xr-x 4 root root 4096 Jun 2 00:25 scripts
    drwxr-xr-x 4 root root 4096 Jun 2 00:25 standard_cgis
    drwxr-xr-x 2 root root 4096 Jun 2 00:25 sv
    -rwx------ 1 root root 9389 Jun 2 00:25 uninstall
     
  16. falko

    falko Super Moderator ISPConfig Developer

    The outputs all look ok. Can you restart Apache and check if you still get these filter errors then?
     
  17. webcycler

    webcycler New Member

    I restarted apache.

    Still no luck..
    [Sat Jun 09 12:13:57 2007] [error] an unknown filter was not added: PHP
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    Are there any errors in the file /home/admispconfig/ispconfig/ispconfig.log? Have you changed the value in one of your websites and saved this value after you edited the config.inc.php file.
     
  19. webcycler

    webcycler New Member

    Found it !

    I found the problem.

    Your reply made me go through all the conf files in conf.d
    I had created a conf file for some of my tools to manage some tasks. For this i created a folder outside of ISPconfig reach.
    To make the PHP run in this virtual I also added the <<Files *.php>> sections, while i only had to add <<AddType application/x-httpd-php .php .php3 .php4 .php5>>

    Yes, me fool. But this is the way this kind of errors always sneak in.

    Many thanks for your patience and helping me zoom into the problem.
     
  20. blackmask

    blackmask New Member

    thanks till.. i follow your instruction and the error message is gone... thanks again

    ispconfig 2.2.15
    debian 4.0
     

Share This Page