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 22nd June 2007, 10:34
dezibel dezibel is offline
Junior Member
 
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default vhost_ispconfig not beeing updated

Hi there!

just updatet to the latest ISP-config, and now my vhost_ispconfig-file won't reflect any changes made to sites in ispconfig. here is the output from the ispconfig logfile:
Code:
22.06.2007 - 10:17:57 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1231: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
22.06.2007 - 10:17:57 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2418: WARNING: could not httpd -t  &> /dev/null
22.06.2007 - 10:17:57 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2429: httpd syntax seems to contain errors, reloading with old configuration
22.06.2007 - 10:17:57 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2430: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf_22-06-07_10-17-57
22.06.2007 - 10:17:57 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2431: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf~ /etc/apache2/vhosts/Vhosts_ispconfig.conf
22.06.2007 - 10:17:58 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/apache2 reload &> /dev/null
22.06.2007 - 10:17:58 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1892: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
and here is httpd -t:
Code:
admin@ubuntu-p3:~$ httpd -t
Syntax OK
Why?

please help
Reply With Quote
Sponsored Links
  #2  
Old 22nd June 2007, 11:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,075
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

You must rename the Vhost_ispconfig.conf file with the date appended to Vhost_ispconfig.conf before you run httpd -t.

Code:
mv /etc/apache2/vhosts/Vhosts_ispconfig.conf_22-06-07_10-17-57 /etc/apache2/vhosts/Vhosts_ispconfig.conf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd June 2007, 12:46
dezibel dezibel is offline
Junior Member
 
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks that told me why is failed
Reply With Quote
  #4  
Old 20th March 2008, 05:56
actiononline actiononline is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Different situation, same problem

I had to recover my ISP Config server after it recently lost some data due to the hdd heating up. At the same time I also upgraded from ISPC version 2.2.6 to 2.2.19. I managed to get the ISP Config running fine on the new installation, but now it cannot write to the Vhosts_ispconfig.conf

I also do not have a copy of the dated *.conf file anywhere, only the actual Vhosts_ispconfig.conf, and ISP Config cannot write to this file, as I have to manually add new websites and delete them from this file. The output of httpd -t as follows:
PHP Code:
httpdCould not reliably determine the servers fully qualified domain nameusing mail.actiononline.co.za for ServerName
[Thu Mar 20 06:54:11 2008] [warnNameVirtualHost 196.37.170.xxx:80 has no VirtualHosts
[Thu Mar 20 06:54:11 2008] [warnNameVirtualHost 196.37.170.xxx:80 has no VirtualHosts
Syntax OK 
Although it says it has no VirtualHosts, all the websites are accessible on the server. Adding, editing or deleting either mailbox users or domains from the ISPConfig control panel has no effect on the actual files.
Reply With Quote
  #5  
Old 20th March 2008, 10:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,075
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

The messages are warnings and not errors, you can ignore them.

If you want to find a error in Vhost_ispconfig.conf, rename the files as I described above before you run httpd -t
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 21st March 2008, 08:46
actiononline actiononline is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I renamed my Vhost_ispconfig.conf file to Vhost_ispconfig.conf_01-03-08_10-17-57 and saved in in etc/apache2/vhosts/ and restarted everything. I then added a new website in the control panel, and although it shows up there, it was not added to the Vhost_ispconfig.conf file.

On an existing website I had a login problem with one of the mail accounts on the domain. I tried resetting the password, and that didn't work, so I deleted the user and wanted to re-create the box. This then gave me an error from the ISPC control panel saying the account already exists. I checked the passwd file, and there is no such user. I then also checked the virtualusertable in postfix to see if the user is there, but nothing.

So where else can the user information be that prevents ISPConfig from deleting the info and recreating? And then how can the permission problem be sorted out that will allow ISPConfig to write to all the necessary files?
Reply With Quote
  #7  
Old 21st March 2008, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Did you rename the Vhost_ispconfig.conf file with the date appended to Vhost_ispconfig.conf and run
Code:
httpd -t
?
__________________
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
  #8  
Old 21st March 2008, 14:17
actiononline actiononline is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, I renamed the file and ran httpd -t and it gave me the same output as before
Reply With Quote
  #9  
Old 22nd March 2008, 16:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /etc/apache2/vhosts
and
Code:
ls -la /root/ispconfig
? Any errors/warnings in /home/admispconfig/ispconfig/ispconfig.log?
__________________
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
  #10  
Old 22nd March 2008, 17:45
actiononline actiononline is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

PHP Code:
mail:~ # ls -la /etc/apache2/vhosts
total 248
drwxr
-xr-x  2 root root   4096 Mar 20 11:42 .
drwxr-xr-x 11 root root   4096 Mar 14 19:51 ..
-
rw-rw----  1 root root 118096 Mar 18 18:42 Vhosts_ispconfig.conf
-rw-r-----  1 root root 118096 Mar 20 11:42 Vhosts_ispconfig.conf_01-03-08_10-17-57

mail
:~ # ls -la /root/ispconfig
total 100
drwxr
-xr-x  9 root root  4096 Mar 22 15:20 .
drwx------ 13 root root  4096 Mar 21 10:29 ..
-
rw-r--r--  1 root root     8 Mar 22 15:20 .old_path_httpd_root
-rwxr-xr-x  1 root root 34515 Mar 14 19:51 cronolog
-rwxr-xr-x  1 root root  9673 Mar 14 19:51 cronosplit
drwxr
-xr-x 12 root root  4096 Mar 14 19:35 httpd
drwxr
-xr-x 15 root root  4096 Mar 14 19:51 isp
drwxr
-xr-x  6 root root  4096 Mar 14 19:30 openssl
drwxr
-xr-x  6 root root  4096 Mar 20 15:38 php
drwxr
-xr-x  4 root root  4096 Mar 18 23:59 scripts
drwxr
-xr-x  4 root root  4096 Mar 14 19:51 standard_cgis
drwxr
-xr-x  2 root root  4096 Mar 14 19:51 sv
-rwx------  1 root root  9389 Mar 14 19:51 uninstall 
And here is what I could see in the ISPConfig log when the user mailbox was deleted and recreated.

PHP Code:
18.03.2008 13:21:25 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 2597rm -fr /var/www/web119/user/brokor.co.za_stuart
18.03.2008 
13:23:34 => DEBUG The username is already in use.<br><br><br> <a href='../../isp_manager/frame_start.php?'>Next &gt;&gt;</a>
18.03.2008 13:24:50 => DEBUG The username is already in use.<br><br><br> <a href='../../isp_manager/frame_start.php?'>Next &gt;&gt;</a>
18.03.2008 13:48:17 => INFO Signalfile Setinsert
18.03.2008 
13:48:26 => WARN WARNINGcould not open file 
Then I also saw this that seemed suspect:

PHP Code:
21.03.2008 09:48:24 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 2520httpd syntax ok
21.03.2008 
09:48:24 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.phpLine 728WARNINGcould not /etc/rc.d/init.d/httpd reload &> /dev/null
21.03.2008 
09:48:24 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.phpLine 728WARNINGcould not /etc/rc.d/init.d/postfix stop &> /dev/null
21.03.2008 
09:48:24 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.phpLine 728WARNINGcould not /etc/rc.d/init.d/postfix start &> /dev/null 
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
Zone files are not updated after deletion from web JAYDEE.U Installation/Configuration 1 1st January 2007 10:09
Vhost not being updated yurtboy Installation/Configuration 5 21st December 2006 18:29
Updated Clamav Ben Developers' Forum 0 8th August 2006 09:52
virtusertable not getting updated 22hn Installation/Configuration 5 23rd May 2006 00:37
Webalizer not updated since 01 Jan 06? Zoon General 24 22nd March 2006 20:29


All times are GMT +2. The time now is 13:04.


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