It's me again. I have scheduled a backup of all domains currently configured on the server, and everything is working fine, except the domain (virtual server) that I've been contacting you about recently (goto.scoringcenter.com). The backup for that domain is almost successful, with the exception of the following error message: Copying Apache virtual host configuration .. .. no Apache virtual host found!
The apache virtual host was inoperable for a while due to the bug with changing the home directory. I was directed to manually update the httpd.conf file, which I did, and then apache began to work again. However, there seems to still be some sort of problem related to apache, and this time it is the backup system having troubles finding the virtual host / virtual host config.
Could you point me to where I should look to resolve this issue. (Hopefully, for your sake, this sorts out the last of the issues for this domain... at least for a while ;)
Thanks.
Comments
Submitted by JamieCameron on Sun, 09/19/2010 - 18:56 Comment #1
Looks like Virtualmin is looking at the wrong path for the domain's web directory in httpd.conf.
You can correct this as follows :
virtualmin list-domains --domain goto.scoringcenter.com --id-only
/etc/webmin/virtual-server/domains
with that IDpublic_html_dir
andpublic_html_path
lines.Submitted by thanecrossley.com on Tue, 09/21/2010 - 13:36 Comment #2
Thanks for your feedback.
I found the virtualmin ID for the domain in question, and accessed the correct file. However the lines you suggested I correct seem to already be correct.
These lines currently read as follows:
public_html_dir=public_html public_html_path=home/scoringcenter/public_html
and the home directory is configured to be home/scoringcenter
Should I send you some files?
Submitted by JamieCameron on Tue, 09/21/2010 - 13:38 Comment #3
Could you post the full output from the backup that fails here?
Submitted by thanecrossley.com on Wed, 09/22/2010 - 16:47 Comment #4
Sure thing. Here it is:
Creating backup for virtual server salesdialogue.com ..
Creating backup for virtual server thanecrossley.com ..
Creating backup for virtual server goto.scoringcenter.com ..
Submitted by JamieCameron on Wed, 09/22/2010 - 18:04 Comment #5
Ok, that's a slightly different error to what I expected..
This can happen if in the Apache config, the block for the domain either has the wrong IP address, or doesn't contain a ServerName or ServerAlias entry for the domain name.
Submitted by thanecrossley.com on Wed, 09/22/2010 - 18:33 Comment #6
Thanks for your feedback. That information helped. I found that the IP address was set to port 8080, and neither the backup routine or the Virtualmin Server Configuration/Website Option area liked that. I changed the port back to 80 and all was well.
Submitted by JamieCameron on Wed, 09/22/2010 - 18:40 Comment #7
Cool .. that would certainly explain it.
Submitted by Issues on Wed, 10/06/2010 - 20:19 Comment #8
Automatically closed -- issue fixed for 2 weeks with no activity.