Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th November 2005, 08:52
Bruce Bruce is offline
Junior Member
 
Join Date: Oct 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable something in vhosts/Vhosts_ispconfig.conf

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
Reply With Quote
Sponsored Links
  #2  
Old 15th November 2005, 10:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by Bruce
Else I have to uncomment these lines always manually (or is there a problem with manual editing and ispconfig won't work anymore?).
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th November 2005, 11:18
Bruce Bruce is offline
Junior Member
 
Join Date: Oct 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #4  
Old 15th November 2005, 12:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by Bruce
is there a possibility to let ispconfig rewrite the vhost.conf?
Vhosts_ispconfig.conf is already written by ISPConfig.

Quote:
Originally Posted by Bruce
and another question: is there a possibility to let set ispconfig file- and folderpermissions to the creation-defaults?
I don't quite understand the question...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th November 2005, 13:10
Bruce Bruce is offline
Junior Member
 
Join Date: Oct 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #6  
Old 15th November 2005, 14:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by Bruce
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 16th November 2005, 08:19
benbalbo benbalbo is offline
Member
 
Join Date: Oct 2005
Posts: 50
Thanks: 0
Thanked 4 Times in 4 Posts
Default

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...
Reply With Quote
  #8  
Old 16th November 2005, 10:11
Bruce Bruce is offline
Junior Member
 
Join Date: Oct 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

yes, that was my question
the answer, you posted, regenerated the vhost.conf. thx!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable the shell cron jobs? raymov General 3 1st November 2005 05:43
disable webmail,MYsql Database features gg234 Installation/Configuration 2 14th September 2005 03:56
Disable Web morphinex Installation/Configuration 2 4th August 2005 19:54
Disable exec() in PHP uli Programming/Scripts 2 27th April 2005 18:42


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


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