New domain name

Discussion in 'Installation/Configuration' started by pebkac, Feb 17, 2010.

  1. pebkac

    pebkac Member HowtoForge Supporter

    Hey all,

    Long story short, I had to get a new domain name, sucks! Anyway, my old domain is located all over my server. For instance:
    Code:
    root@pebkac:/etc/ssh# hostname
    pebkac.mydomainInolongerhave.com
    
    How do I go about changing that to reflect my new domain name???? I know there is more than 1 place it needs to be done also???
     
  2. Mark_NL

    Mark_NL Member

    Well i think it's a classic pebkac ;-)

    You could do a file content search for the string and edit those files.
    Good luck!
     
  3. frument

    frument New Member

    Sounds like a lot of fun!

    Try this:
    Code:
              grep -R yourdomain.com /etc > results1.txt
              grep -R yourdomain.com /var/www > results2.txt
    change each instance of yourolddomain.com to domain.com

    To change your host name:

    Code:
    hostname yourdomain.com
    edit your host file:

    Code:
     vi /etc/hosts
    Hope this helps

    -Rob
     
  4. pebkac

    pebkac Member HowtoForge Supporter

    Anyone else have any ideas on this, and what I might expect with regards to problems by doing this?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Please do what frument suggested.
     

Share This Page