The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"Sorry, that domain is already setup (remove it from httpd.conf?)

Discussion in 'Data Protection' started by lycosa, Sep 13, 2004.

  1. lycosa

    lycosa Member

    Joined:
    Sep 13, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    :confused:

    Hi,

    I tried to create an account (which I will transfer the domain across to), but it gives me the following error:

    "Sorry, that domain is already setup (remove it from httpd.conf?)"

    The account does not appear in "List Accounts", but I have previously created and then deleted the same account. Obviously the details were not removed from http.conf the first tiem.

    How do I remove the errant data from httpd.conf?

    Thanks,
    Phil
     
  2. exodux

    exodux Well-Known Member

    Joined:
    Apr 12, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, Queensland, Australia
    To remove the domain information from the httpd.conf file, simply SSH into your server,
    type: pico /etc/httpd/conf/httpd.conf
    and then press: ctrl+w and type the domain name in and then hit enter.

    In case your worried that i might be telling you the wrong thing here
    pico is a editor for linux
    ctrl+w does a search in pico for any text you type in.
    its just like pressing alt+f in notepad to find text.

    once you found the domain, delete the domain name and the VirtualHost information along with it.
    then press ctrl+x and then hit, y
    and then hit enter.
    ctrl+x is to exit out of pico, y is to answer yes to saving the file
    enter is to save to the file you just edited.

    if your worried about doing anything wrong to your httpd.conf file, simply copy httpd.conf to your root directory: cp /etc/httpd/conf/httpd.conf /root
    then if you do anything wrong in httpd.conf, you have a backup copy of it to replace.

    Have fun, any problems feel free to ask questions.
    Linux is a community of sharing knowledge, not being greedy like Microsoft :P
     
  3. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    just to add; after editing the httpd.conf; please restart httpd as root from shell using:

    /etc/rc.d/init.d/httpd restart

    or from your WHM.

    else your deletion will not take effect.
     
  4. lycosa

    lycosa Member

    Joined:
    Sep 13, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Thanks

    Thanks to you both for your help. I don't have ssh access, though. I will ask the support staff to do this for me.
    Phil
     
Loading...

Share This Page