These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for virtualmin can't change default website on the new forum.
Hi guys,
I was hoping you could help me with changing the default website on my webmin (latest stable version) on Ubuntu 14.04LTS.
When I select a new website that I want to have as default, I get this error:
Making website the default .. .. failed : Cannot handle swap between /etc/apache2/sites-available/example1.com.conf and /etc/apache2/sites-enabled/0-test.example2.com.conf
all files in /etc/apache/sites-available have same rights (-rwxr-x--- 1 root root).
I was trying to look for a detailed log why did it not succeed, but didn't get it.
Thanks for your kind help.
Michal
Howdy,
Hmm, I'm not quite sure what might cause that -- I've asked Jamie for some additional input.
-Eric
Howdy,
Okay, if you run a "ls -l /etc/apache2/sites-enabled/", all the files in there should be symlinks to the actual files located in "/etc/apache/sites-available/".
Is that the case on your system there?
Jamie mentioned that if the conf files for the domains in question weren't symlinks, that could potentially cause that problem.
-Eric
Hi Eric,
you're the MAN! the files were in both directories. I put them all into /etc/apache2/sites-available/ and created only links to sites-enabled. Since then it works just fine.
Thanks a lot!
Michal