1

I have been following this tutorial on Ubuntu forums for backup/restore of ubuntu server

I have a dedicated server and in case I have to restore the whole server on a new machine, I'm practicing using a virtual machine in vmware.

I've managed to restore all the files by doing an untar of the backup. However I can't get apache to start:

could not reliably determine the server's fully qualified domain name using 127.0.1.1 for servername

and

The Apache error log may have more information

The problem is that there are no logs since I've excluded them from the backup.

Do I need to first install Apache and then untar the backup ?

Is this the proper way to restore the server ? I have some doubts because things like ip address and host name would be different if I create a new dedicated server, so there is potentially a significant number of files that would need to be updated. Is there a recommended way to do that?

Zanna
  • 72,312
Sam
  • 195

1 Answers1

0

I've manually created the log directory and next time I attempted to start Apache, the error.log file was created.

From there, I could find out that there was no entry in the /etc/hosts file for the new machine's name. I created it and now Apache runs fine.

I'm still wondering if this the proper way to set up a new server out of a backup tar ?

Sam
  • 195