Submitted by isdahlc on Fri, 02/24/2012 - 14:44 Pro Licensee
I was in the process of adding a new domain to VM when webmin on that server died in the middle. I beleive it completed the setup process but the new domain does not show up in VM, when I tried to re-add the domain it said that domain already existed.
Can you point me in the right direction to fix this?
Thanks!
-- Craig
Status:
Closed (fixed)
Comments
Submitted by isdahlc on Fri, 02/24/2012 - 14:53 Pro Licensee Comment #1
The domain is setup in /home, the main user is listed in /etc/passwd but it doesn't show on a domain list list from either the web interface or command line "list-domians" command.
Submitted by JamieCameron on Fri, 02/24/2012 - 15:16 Comment #2
You may have to manually delete the domain's user from
/etc/passwd
,/etc/shadow
and/etc/group
, delete the home directory, remove the Apache and BIND config, and delete any MySQL database created for the domain.Submitted by isdahlc on Fri, 02/24/2012 - 15:49 Pro Licensee Comment #3
I did that but now it throws and error when trying to create the website - it creates the mail users and other things just fine. I deleted and recreated through VM a couple time, same error.
Tried a completely different test domain and receive the same error.
There are 6 webmin and 1 usermin updates that need to be applied to this server, if I apply those will that fix the issue?
Creating administration group liposcience.org ..
.. done
Creating administration user liposcience.org ..
.. done
Creating aliases for administration user ..
.. done
Adding administration user to groups ..
.. done
Creating home directory ..
.. done
Creating mailbox for administration user ..
.. done
Adding to email domains list ..
.. done
Adding default mail aliases ..
.. done
Adding new virtual website ..
.. done
Adding webserver user apache to server's group ..
.. done
Performing other Apache configuration ..
.. configuration failed : Apache virtual host was not found at /usr/libexec/webmin/web-lib-funcs.pl line 1360.
Setting up spam filtering ..
.. done
Setting up virus filtering ..
.. done
Applying web server configuration ..
.. done
Saving server details ..
.. done
Sending email notification to domain owner ..
.. email sent to domain.org@domain.org
Submitted by JamieCameron on Fri, 02/24/2012 - 15:56 Comment #4
This could be due to corruption in your Apache config file. Take a look at
/etc/httpd/conf/httpd.conf
and make sure it doesn't contain an incompleted Virtualhost block.Submitted by isdahlc on Fri, 02/24/2012 - 16:28 Pro Licensee Comment #5
Yes, I was missing a directive - Thanks!
Submitted by JamieCameron on Fri, 02/24/2012 - 17:28 Comment #6
So after fixing that, were you able to create the domain OK?
Submitted by isdahlc on Fri, 02/24/2012 - 21:31 Pro Licensee Comment #7
Yes, after fixing the missing tag I was able to create the domian.
-- Craig
Submitted by JamieCameron on Sat, 02/25/2012 - 00:34 Comment #8
Ok, great!
Submitted by Issues on Sat, 03/10/2012 - 00:46 Comment #9
Automatically closed -- issue fixed for 2 weeks with no activity.