Disable something in vhosts/Vhosts_ispconfig.conf

Discussion in 'Installation/Configuration' started by Bruce, Nov 15, 2005.

  1. Bruce

    Bruce New Member

    Hi there!

    ispconfoig adds automatically the following lines to any vhost-entry:

    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>
    ...
    That leads to this error in the /var/log/apache2/error.log:
    Code:
    [Tue Nov 15 07:00:52 2005] [error] an unknown filter was not added: PHP
    [Tue Nov 15 07:00:54 2005] [error] an unknown filter was not added: PHP
    [Tue Nov 15 07:00:54 2005] [error] an unknown filter was not added: PHP
    [Tue Nov 15 07:01:36 2005] [error] an unknown filter was not added: PHP
    [Tue Nov 15 07:01:36 2005] [error] an unknown filter was not added: PHP
    [Tue Nov 15 07:10:00 2005] [error] an unknown filter was not added: PHP
    [Tue Nov 15 07:10:00 2005] [error] an unknown filter was not added: PHP
    
    PHP is up and running, but I don't like the error-message. Is there a vhost-template, where I can disable these lines? Else I have to uncomment these lines always manually (or is there a problem with manual editing and ispconfig won't work anymore?).

    Best regards,
    Bruce
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Don't edit the Vhosts_ispconfig.conf file manually because your changes will be over written by ISPConfig!:eek:
    You can edit the function make_vhosts() in /root/ispconfig/scripts/lib/config.lib.php. That's where the PHP part comes from.
     
  3. Bruce

    Bruce New Member

    thanks!

    is there a possibility to let ispconfig rewrite the vhost.conf?
    and another question: is there a possibility to let set ispconfig file- and folderpermissions to the creation-defaults?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Vhosts_ispconfig.conf is already written by ISPConfig.

    I don't quite understand the question...:confused:
     
  5. Bruce

    Bruce New Member

    i thought, maybe ispconfig could read the values out of the database and rewrite the vhost.conf. so I don't have to remove allt the
    SetOutputFilter PHP
    SetInputFilter PHP
    by hand.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    That code is not in a database, it's hard-coded in the function make_vhosts() in /root/ispconfig/scripts/lib/config.lib.php so you have to make your changes there.
     
  7. benbalbo

    benbalbo ISPConfig Developer ISPConfig Developer

    I think Bruce might be asking how to regenerate the vhost file after modifying the make_vhosts() function :) If not - it's an interesting question anyway.

    I would imagine this can be done by editing any web site in the ISP Config interface and just hitting the save button...
     
  8. Bruce

    Bruce New Member

    yes, that was my question ;)
    the answer, you posted, regenerated the vhost.conf. thx!
     

Share This Page