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
Don't edit the Vhosts_ispconfig.conf file manually because your changes will be over written by ISPConfig! You can edit the function make_vhosts() in /root/ispconfig/scripts/lib/config.lib.php. That's where the PHP part comes from.
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?
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.
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.
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...