PDA

View Full Version : domain name change



teedee
02-17-2004, 04:38 AM
Hi,

Is it possible to change the domain name on an account ?

Thanks

TeeDee

l0rdphi1
02-17-2004, 09:08 AM
Delete the current domain and add a different one?

teedee
02-17-2004, 02:49 PM
I have a client that has all their site, databases etc setup, and they just want to change the domain name, do I really have to delete everything and recreate it all ??

existenz
02-17-2004, 03:54 PM
You can manually change it in the apache config file. Or if it is just a domain change you can as it as a alias. In the Admin go to Custom httpd config and add this inside the VirtualHost container:

ServerAlias domain.com www.domain.com

jmstacey
02-20-2004, 11:23 AM
Isn't there a better way though?
There should be

-Jon-

teedee
02-20-2004, 02:41 PM
i need a way that the username stays the same but all e-mail etc would be correct for the new domain name :D

Eagle1
02-20-2004, 02:55 PM
Here is how I did it!

1. Do a complete user backup.
2. Save the backup.tar.gz in the user's backup directory.
3. Delete the user's account.
4. Create the user's account using the same user name.
5. Do another complete backup.
6. Override the backup file in the user's backup directory with the one made earlier.
7. Change permissions on the file:
chown user:user backup.tar.gz
8. Do a complete restore.

This worked flawlessly for me me, but you might want to test it on a dummy account first.

Eddie

S2S-Robert
02-20-2004, 05:09 PM
As far as I know you don't even need to create a backup once you readded the user, you can just simply add the user with the same username and be done with it.

DirectAdmin Support
02-21-2004, 01:24 PM
i need a way that the username stays the same but all e-mail etc would be correct for the new domain name

For that you could just create the new domain name, and then just copy all data from the /etc/virtual/olddomain.com/* to /etc/virtual/newdoamin.com/*

John