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
  #11  
Old 22nd March 2008, 18:27
actiononline actiononline is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default deleting a domain

When I delete a domain from the ISPC Control Panel, I get the following in the logs:

PHP Code:
22.03.2008 19:26:57 => INFO Signalfile Setinsert
22.03.2008 
19:26:57 => INFO Signalfile Setdelete: do
22.03.2008 19:26:57 => INFO Signalfile Setdelete: do
22.03.2008 19:26:57 => INFO Signalfile Setdelete: do
22.03.2008 19:27:03 => WARN WARNINGcould not open file
22.03.2008 
19:27:04 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 514Connected successfully
22.03.2008 
19:27:05 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 575MySQL FLUSH PRIVILEGES
22.03.2008 
19:27:08 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 995setquota -u brisondistribution.co.za_webmas 0 0 0 0 -&> /dev/null
22.03.2008 
19:27:08 => INFO USER:
brisondistribution.co.za_webmas:x:10460:10177:webmaster:/var/www/web177:/dev/null
22.03.2008 
19:27:08 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.phpLine 137cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
22.03.2008 19:27:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.phpLine 284cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
22.03.2008 19:27:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.phpLine 289postmap hash:/etc/postfix/virtusertable
22.03.2008 
19:27:09 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 1259cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
22.03.2008 19:27:10 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 2513httpd -t  &> /dev/null
22.03.2008 
19:27:10 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 2520httpd syntax ok
22.03.2008 
19:27:10 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.phpLine 728WARNINGcould not /etc/rc.d/init.d/httpd reload &> /dev/null
22.03.2008 
19:27:10 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.phpLine 728WARNINGcould not /etc/rc.d/init.d/postfix stop &> /dev/null
22.03.2008 
19:27:10 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.phpLine 728WARNINGcould not /etc/rc.d/init.d/postfix start &> /dev/null
22.03.2008 
19:27:10 => INFO - /root/ispconfig/scripts/lib/config.lib.phpLine 1984cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf
And when I then look in the Vhosts_ispconfig.conf file, the entry for the domain is still there, and when restarting apache, it won't restart because the directories for the domain has been deleted, but the Vhosts_ispconfig.conf still calls the domain. When I manually delete the domain from the file and then start apache, it starts fine without issues.

Last edited by actiononline; 22nd March 2008 at 18:32.
Reply With Quote
Sponsored Links
  #12  
Old 23rd March 2008, 18:24
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

Please delete that domain from the recycle bin also.
__________________
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
  #13  
Old 23rd March 2008, 19:23
actiononline actiononline is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok I found a few interesting things. I am working with Suse10.3, and the httpd.conf file had an entry
Include /etc/apache2/vhosts.d/*.conf and then right at the bottom of the file it had almost the same thing again but looking like this:
Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

I removed the first Include calling for the file in /vhosts.d, and the proceeded to delete a few of the dormant domains. Even after emptying the recycle bin in ISPConfig, I had absolutely no error anywhere. But when I manually restarted the apache server in SSH, this is what I got, preventing apache from starting.

PHP Code:
mail:/etc/apache2/vhosts # /etc/init.d/apache2 restart
WarningDocumentRoot [/var/www/web13/webdoes not exist
Warning
DocumentRoot [/var/www/web72/webdoes not exist
Warning
DocumentRoot [/var/www/web177/webdoes not exist
Warning
DocumentRoot [/var/www/web13/webdoes not exist
Warning
DocumentRoot [/var/www/web72/webdoes not exist
Warning
DocumentRoot [/var/www/web13/webdoes not exist
Warning
DocumentRoot [/var/www/web72/webdoes not exist
httpd2
-preforkCould not reliably determine the server's fully qualified domain name, using 196.37.170.xx for ServerName
[Sun Mar 23 20:03:48 2008] [warn] NameVirtualHost 196.37.170.xx:80 has no VirtualHosts
[Sun Mar 23 20:03:48 2008] [warn] NameVirtualHost 196.37.170.xx:80 has no VirtualHosts
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)          done
Starting httpd2 (prefork) Warning: DocumentRoot [/var/www/web13/web] does not exist
Warning: DocumentRoot [/var/www/web72/web] does not exist
Warning: DocumentRoot [/var/www/web177/web] does not exist
Warning: DocumentRoot [/var/www/web13/web] does not exist
Warning: DocumentRoot [/var/www/web72/web] does not exist
httpd2-prefork: Could not reliably determine the server'
s fully qualified domain nameusing 196.37.170.xx for ServerName
[Sun Mar 23 20:03:49 2008] [warnNameVirtualHost 196.37.170.xx:80 has no VirtualHosts
[Sun Mar 23 20:03:49 2008] [warnNameVirtualHost 196.37.170.xx:80 has no VirtualHosts
startproc
:  exit status of parent of /usr/sbin/httpd2-prefork
To fix this I had to delete the entries for these domains again from the VHosts_ispconfig.conf file and restart, this time without errors.

So it would seem that ISPConfig does not have permission to write to the vhost file when you add and delete domains.
Reply With Quote
  #14  
Old 24th March 2008, 13:08
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
?
__________________
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
  #15  
Old 24th March 2008, 16:30
actiononline actiononline is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mail:~ # ls -la /etc/apache2/vhosts
total 244
drwxr-xr-x 2 root root 4096 Mar 23 20:05 .
drwxr-xr-x 11 root root 4096 Mar 23 20:25 ..
-rw-rw---- 1 root root 111557 Mar 23 20:12 Vhosts_ispconfig.conf
-rw-r----- 1 root root 118096 Mar 20 11:42 Vhosts_ispconfig.conf_01-03-08_10-17-57
Reply With Quote
  #16  
Old 25th March 2008, 15:57
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

Please take a look here: http://www.howtoforge.com/forums/showthread.php?t=7719
__________________
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
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 04:56.


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