Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Made a link from domlogs to another partition.. how to remov

Discussion in 'General Discussion' started by fog, Oct 9, 2002.

  1. fog

    fog Well-Known Member

    Joined:
    Jun 22, 2002
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    166
    I followed the wrong guide posted here I guess. I went into the domlogs dir... killed httpd... made a link to /home2/domlogs and restarted apache... was hoping this would stop my /usr partition from filling up, but the /usr partition still grows so the guide posted here was wrong.

    What I would like to do is remove the link and follow one of the other guides posted here.

    Please help.. I just don't know the command to kill the link.

    Here is what I did...

    mkdir /home2/domlogs
    stop httpd
    ln -s /usr/local/apache/domlogs /home2/domlogs
    start httpd

    How do I undo it and what would be the proper way to accomplish this?
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    You were so close.

    mkdir /home2/domlogs
    stop httpd
    cd /usr/local/apache/domlogs
    tar -cvf domlogs.tar *
    mv domlogs.tar /home2/domlogs
    cd ..;rm -R domlogs
    ln -s /home2/domlogs /usr/local/apache/domlogs
    cd /usr/local/apache/domlogs
    tar -xvof domlogs.tar
    start httpd
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. fog

    fog Well-Known Member

    Joined:
    Jun 22, 2002
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    166
    Thank you, but how do I remove the bad link I made?
     
  4. fog

    fog Well-Known Member

    Joined:
    Jun 22, 2002
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    166
    I attempted to follow the below, but am left with one issue. Please help.

    mkdir /home2/domlogs DONE
    stop httpd DONE
    cd /usr/local/apache/domlogs DONE
    tar -cvf domlogs.tar * DONE
    mv domlogs.tar /home2/domlogs DONE

    cd ..;rm -R domlogs
    Do I want to delete the files within domlogs or just remove the entire directory? It prompts me for this info.

    ln -s /home2/domlogs /usr/local/apache/domlogs
    cd /usr/local/apache/domlogs
    tar -xvof domlogs.tar
    start httpd
     
  5. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Once you've done the tar and moved it, verify that it does exist in the new directory. When you do the rm -R reply yes or use rm -Rf

    I have tested this thoroughly as I also have my domlogs somewhere else.

    Also your bad, locate the the bad link you should see it in /home2/domlogs/ All you have to do is rm it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice