Error in backup - related to home directory change?

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.

Status: 
Closed (fixed)

Comments

Looks like Virtualmin is looking at the wrong path for the domain's web directory in httpd.conf.

You can correct this as follows :

  1. Get the domain's unique ID with the command virtualmin list-domains --domain goto.scoringcenter.com --id-only
  2. Edit the file under /etc/webmin/virtual-server/domains with that ID
  3. Correct the public_html_dir and public_html_path lines.

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?

Could you post the full output from the backup that fails here?

Sure thing. Here it is:

Creating backup for virtual server salesdialogue.com ..

Copying virtual server configuration ..
.. done

Backing up Cron jobs ..
.. none defined.

Saving mail aliases ..
.. done

Saving mail and FTP users ..
.. done

Backing up mail and FTP user Cron jobs ..
.. none to backup

Copying records in DNS domain ..
.. done

Copying Apache virtual host configuration ..
.. done

Copying Apache log files ..
.. done

Copying Webalizer configuration files ..
.. done

Copying SSL Apache virtual host configuration and certificate ..
.. done

Copying Logrotate configuration ..
.. done

Dumping MySQL database admin ..
.. done

Backing up Webmin ACL files ..
.. done

Backing up AWstats configuration file ..
.. done

Creating incremental TAR file of home directory ..
.. done

Uploading archive to Amazon's S3 service ..
.. done

Creating backup for virtual server thanecrossley.com ..

Copying virtual server configuration ..
.. done

Backing up Cron jobs ..
.. none defined.

Saving mail aliases ..
.. done

Saving mail and FTP users ..
.. done

Backing up mail and FTP user Cron jobs ..
.. none to backup

Copying Apache virtual host configuration ..
.. done

Copying Apache log files ..
.. done

Copying Webalizer configuration files ..
.. done

Copying Logrotate configuration ..
.. done

Dumping MySQL database thanecrossley ..
.. done

Backing up Webmin ACL files ..
.. done

Backing up AWstats configuration file ..
.. done

Creating incremental TAR file of home directory ..
.. done

Uploading archive to Amazon's S3 service ..
.. done

Creating backup for virtual server goto.scoringcenter.com ..

Copying virtual server configuration ..
.. done

Backing up Cron jobs ..
.. none defined.

Saving mail aliases ..
.. done

Saving mail and FTP users ..
.. done

Backing up mail and FTP user Cron jobs ..
.. none to backup

Copying Apache virtual host configuration ..
.. no Apache virtual host found!

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.

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.

Cool .. that would certainly explain it.

Automatically closed -- issue fixed for 2 weeks with no activity.