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!

How to Restore Files for cpanel Server ..

Discussion in 'General Discussion' started by billau, Jul 26, 2004.

  1. billau

    billau Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Brisbane, Australia
    Got 'Hacked'??? Refer the following to restore the datas from old to new hard drive ::

    cp -p /scripts/wwwacct /scripts/wwwacct.org

    pico /scripts/wwwacct

    search for "dash"

    comment that line out with a #

    remember to put the file back to the way it was when done restoring.

    The old drive is called old_drive.

    You need to .tar and transfer fro old_drive to the new drive: (let's say you
    want to tar /etc/passwd... tar czvf passwd.tar.gz /etc/passwd)

    Files:
    /etc/resolv.conf
    /etc/passwd
    /etc/group
    /etc/shadow
    /etc/trusted
    /etc/named.conf
    /etc/ips
    /usr/local/apache/conf/httpd.conf
    /etc/proftpd.conf
    /etc/trueuserdomains
    /etc/my.cnf
    /etc/domainalias
    /etc/userdomains
    /etc/domainips
    /etc/wwwacct.conf


    Directories:
    /home
    /etc/vfilters
    /etc/proftpd
    /etc/valiases
    /usr/share/ssl
    /var/cpanel
    /var/spool/cron
    /var/named
    /usr/local/cpanel/3rdparty/mailman

    ** missed /var/lib/mysql

    Once this data has been copied to the new system run the following scripts:

    /scripts/initquotas
    /scripts/resetquotas
    /scripts/updateuserdomains


    You should test a few domains.
    remember to put the file back to the way it was when done restoring.
     
    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