Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Closed Thread
 
Thread Tools Display Modes
  #1  
Old 31st July 2008, 10:14
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 116
Thanks: 38
Thanked 3 Times in 3 Posts
Default [SOLVED] Vhosts_ispconfig.conf problem

Hi,
i need small help with how to recreate Vhosts_ispconfig.conf ...
is it somehow possible ?

Thanks
Sponsored Links
  #2  
Old 31st July 2008, 10:27
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Within ISPConfig, on the basis tab of one of your sites, change a checkbox, for example enable cgi-scripts for the website and press save.

After every modification ISPConfig creates a new Vhosts_ispconfig.conf file.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
The Following User Says Thank You to Hans For This Useful Post:
Snowman (31st July 2008)
  #3  
Old 31st July 2008, 10:41
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 116
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by Hans View Post
Within ISPConfig, on the basis tab of one of your sites, change a checkbox, for example enable cgi-scripts for the website and press save.

After every modification ISPConfig creates a new Vhosts_ispconfig.conf file.
thanks i will try that now. i am back in 5 mins.
  #4  
Old 31st July 2008, 10:46
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 116
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Hi,
so i did :
vulpix:/etc/apache2/vhosts# mv Vhosts_ispconfig.conf backup.conf
vulpix:/etc/apache2/vhosts#

than i "logged in" to ISPconfig panel and in basic tab i checked CGIs ..

but nothing created ..

in logs when i clicked to change CGIs ...

31.07.2008 - 10:45:44 => INFO - Signalfile Set: insert
31.07.2008 - 10:45:54 => WARN - WARNING: could not open file /etc/apache2/vhosts/Vhosts_ispconfig.conf
31.07.2008 - 10:45:54 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 258: setquota -g web74 0 0 0 0 -a &> /dev/null
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 259: setquota -T -g web74 604800 604800 -a &> /dev/null
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 278: Connected successfully
31.07.2008 - 10:45:55 => INFO - USER:
kenes.com_keneres:x:10330:10074eter keneres:/storage/var/www/web74/user/kenes.com_keneres:/bin/false
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 908: setquota -u kenes.com_keneres 0 0 0 0 -a &> /dev/null
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 909: setquota -T -u kenes.com_keneres 604800 604800 -a &> /dev/null
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp -f /root/ispconfig/isp/conf/forward.master /storage/var/www/web74/user/kenes.com_keneres/.forward
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1264: WARNING: could not cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1643: WARNING: could not mv /storage/var/www/web30/ssl/*.crt /storage/var/www/web30/ssl/domain.com.crt &> /dev/null
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1644: WARNING: could not mv /storage/var/www/web30/ssl/*.key /storage/var/www/web30/ssl/domain.com.key &> /dev/null
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1645: WARNING: could not mv /storage/var/www/web30/ssl/*.key.org /storage/var/www/web30/ssl/domain.com.key.org &> /dev/null
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1646: WARNING: could not mv /storage/var/www/web30/ssl/*.csr /storage/var/www/web30/ssl/domain.com.csr &> /dev/null
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2589: WARNING: could not . /etc/apache2/envvars && httpd -t &> /dev/null
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2603: httpd syntax seems to contain errors, reloading with old configuration
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2604: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf_31-07-08_10-45-55
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2605: WARNING: could not mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf~ /etc/apache2/vhosts/Vhosts_ispconfig.conf
31.07.2008 - 10:45:55 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: WARNING: could not /etc/init.d/apache2 reload &> /dev/null
31.07.2008 - 10:45:55 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php, Line 295: cp -fr /etc/bind/pri.kenes.com /etc/bind/pri.kenes.com~
31.07.2008 - 10:45:58 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/bind9 restart &> /dev/null
31.07.2008 - 10:45:58 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2055: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~

Last edited by Snowman; 31st July 2008 at 10:51. Reason: domain censure
  #5  
Old 31st July 2008, 11:38
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

If ISPConfig can't create a new vhost file, probably there is a typo somewhere in one of the Apache directive fields of one of your sites.
(This field can be found on the bottom of each basis tab of each site in ISPConfig).

What's the output of httpd -t

?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
  #6  
Old 31st July 2008, 11:42
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 116
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by Hans View Post
What's the output of httpd -t?
vulpix:/home/snowman# httpd -t
httpd: Syntax error on line 718 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/vhosts/Vhosts_ispconfig.conf: No such file or directory
vulpix:/home/snowman# mv /etc/apache2/vhosts/backup.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf
vulpix:/home/snowman# httpd -t
[Thu Jul 31 11:42:05 2008] [warn] VirtualHost 86.110.225.80:80 overlaps with VirtualHost 86.110.225.80:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Thu Jul 31 11:42:05 2008] [warn] VirtualHost 86.110.225.168:443 overlaps with VirtualHost 86.110.225.168:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Thu Jul 31 11:42:05 2008] [warn] VirtualHost 86.110.225.157:443 overlaps with VirtualHost 86.110.225.157:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Thu Jul 31 11:42:05 2008] [warn] NameVirtualHost 86.110.225.157:80 has no VirtualHosts
[Thu Jul 31 11:42:05 2008] [warn] NameVirtualHost 86.110.225.168:80 has no VirtualHosts
Syntax OK


Thanks for help ..
  #7  
Old 31st July 2008, 11:47
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

What's in the file /etc/apache2/apache2.conf on line 718?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
  #8  
Old 31st July 2008, 11:54
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 116
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by Hans View Post
What's in the file /etc/apache2/apache2.conf on line 718?
Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
You said before i have to delete Vhosts file and check CGIs for example
so i pasted you all i did that file was moved to backup.cfg so then i moved it back and it can be checked now..
  #9  
Old 31st July 2008, 11:56
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 116
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Are you sure that ispconfig creates this Vhosts file each time something is changed ?
I am not so sure that whole file is created each time..
  #10  
Old 31st July 2008, 12:02
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
 
Default

Quote:
Originally Posted by Snowman View Post
You said before i have to delete Vhosts file ..
I did not tell you to remove it.
ISPConfig overwrites/re-creates the file if there are no syntax errors within the apache directive fields

/etc/apache2/vhosts/Vhosts_ispconfig.conf will be updated every time you change something on the basis tab of the particular site indeed.

Did you add something within the apache directive fields of your websites on the basis tab within ISPConfig?

Please try to restart apache2 as well to initialise the configuration files again:
/etc/init.d/apache2 restart
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 31st July 2008 at 12:08.
Closed Thread

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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 16:06


All times are GMT +2. The time now is 16:37.


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