Submitted by admin@curatebee.com on Wed, 09/30/2015 - 23:33
I moved a site from one virtualmin server to another using the backup and restore feature. On the new server it has a different home directory. When I do a validate servers I get the following error, how do I update the location for virtualmin and nginx works fine?
Nginx website : The Nginx virtual host root directory is /home/riversofcarbon/public_html, but Virtualmin expects it to be /home/riversof/public_html
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Thu, 10/01/2015 - 23:36 Comment #1
You will need to edit the config file for the domain under
/etc/nginx/sites-enabled
to correct the root directory path.Submitted by JamieCameron on Thu, 10/01/2015 - 23:42 Comment #2
That said, this shouldn't be needed to be done manually. Did you restore this domain from a different system with a different home directory format?
Submitted by admin@curatebee.com on Fri, 10/02/2015 - 01:26 Comment #3
The backup was created on another virtualmin server and then restored to this new server. There were issues creating the new virtual servers from the backup so I had to manually create the files under sites-enabled. When the restore created the new sites it did also use a new directory for some reason on the new server, hence had to change email home locations and user home directories.
Submitted by admin@curatebee.com on Fri, 10/02/2015 - 01:31 Comment #4
There are only symbolic links under /etc/nginx/sites-enabled, I have already updated the files under /etc/nginx/sites-enabled so nginx is happy but virtualmin is still not happy.
Submitted by JamieCameron on Fri, 10/02/2015 - 16:55 Comment #5
What is the actual home directory for this domain?
Submitted by admin@curatebee.com on Mon, 10/05/2015 - 07:27 Comment #6
Actual home directory is /home/riversofcarbon/public_html
Submitted by JamieCameron on Mon, 10/05/2015 - 16:33 Comment #7
If you run validation for this domain for all features, does it report any other errors? Like the home directory being missing?
Submitted by admin@curatebee.com on Tue, 10/06/2015 - 09:51 Comment #8
Nope, that's the only error.
Submitted by JamieCameron on Wed, 10/07/2015 - 00:04 Comment #9
That's very confusing .. does the directory
/home/riversof
exist at all?Submitted by admin@curatebee.com on Wed, 10/07/2015 - 00:38 Comment #10
Directory /home/riversof does not exist
Submitted by JamieCameron on Wed, 10/07/2015 - 23:31 Comment #11
What output do you get if you run :
grep /home/riversof /etc/webmin/virtual-server/domains/*
Submitted by admin@curatebee.com on Thu, 10/08/2015 - 19:29 Comment #12
/etc/webmin/virtual-server/domains/140727887928791:public_html_path=/home/riversof/public_html /etc/webmin/virtual-server/domains/140727887928791:ssl_key=/home/riversofcarbon/ssl.key /etc/webmin/virtual-server/domains/140727887928791:ssl_cert=/home/riversofcarbon/ssl.cert /etc/webmin/virtual-server/domains/140727887928791:home=/home/riversofcarbon /etc/webmin/virtual-server/domains/140727887928791:stats_pass=/home/riversof/.stats-htpasswd
Submitted by JamieCameron on Thu, 10/08/2015 - 23:11 Comment #13
Ok, I see the problem now - the work-around is to edit
/etc/webmin/virtual-server/domains/140727887928791
and fix or remove thatpublic_html_path=
line. The next release of the Nginx plugin will fix this properly.Submitted by Issues on Thu, 10/22/2015 - 23:18 Comment #14
Automatically closed -- issue fixed for 2 weeks with no activity.