unknown filter was not added: PHP

Discussion in 'General' started by omni, Oct 24, 2007.

  1. omni

    omni New Member

    I have a 1.4.11 squirrelmail installation on my ISPConfig setup. I have an odd problem though, I cannot view my 'Sent' folder within squirrelmail. I am seeing this error in my /var/log/apache2/error.log file

    Code:
    [Wed Oct 24 14:28:44 2007] [error] an unknown filter was not added: PHP
    [Wed Oct 24 14:28:44 2007] [error] an unknown filter was not added: PHP
    Allowed memory size of 8388608 bytes exhausted (tried to allocate 130 bytes)
    
    any ideas? Thank you in advance.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. omni

    omni New Member

    just incase anyone else has this problem here is what I did to fix it.

    I edited the /etc/apache2/vhosts/Vhosts_ispconfig.conf file and removed the following lines from my vhosts;

    Code:
    <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>
    This solved my 'an unknown filter was not added: PHP' error. I tried the fix
    Code:
    $go_info["server"]["apache2_php"] = 'addtype';
    but that did not work for me *shrugs* I changed it, saved it, restarted ispconfig, changed a site to try and re-write the config, nothing. I even tried different combinations, nothing worked but the other fix above did work for me...

    The thing is this particular website is https enabled, well ISPConfig created two virtual host entries in the Vhosts_ispconfig.conf file, but for some reason when I made changes to the site it did not effect the https (site:443) virtual hosts entries in that file only the http (site:80) entry. So I just edited the Vhosts_ispconfig.conf file and added in my
    Code:
    php_value memory_limit 16M
    entry into the https entry (site:443) for the site in question and that then fixed my 'Allowed memory size of 8388608 bytes exhausted' error.
     
    Last edited: Oct 25, 2007
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Never edit the file /etc/apache2/vhosts/Vhosts_ispconfig.conf manually, its useless as ISPConfig will remove all your changes. The above fix definately works.
     

Share This Page