virtualmin can't change default website

4 posts / 0 new
Last post
#1 Tue, 03/24/2015 - 08:47
mhoudek

virtualmin can't change default website

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

Tue, 03/24/2015 - 09:31
andreychek

Howdy,

Hmm, I'm not quite sure what might cause that -- I've asked Jamie for some additional input.

-Eric

Tue, 03/24/2015 - 13:12
andreychek

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

Fri, 03/27/2015 - 04:51 (Reply to #3)
mhoudek

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

Topic locked