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!

will any of these files needed for restore be corrupted by bad kernal upgrade

Discussion in 'General Discussion' started by rockster, Jan 6, 2004.

  1. rockster

    rockster Well-Known Member

    Apr 19, 2003
    Likes Received:
    Trophy Points:
    will any of the files that are necessary for transfer be compromised by the kernal upgrade failure???

    we were notified to upgrade redhat 9.0 whm 8.5 duel xeon machine and the upgrade went totally sour..

    2 years and never a problem until today!

    OK: we have the PRIMARY mounted as BACKUP drive, and the BACKUP as PRIMARY and imaged...

    we want to perform the backup from the files on the primary

    using HOW TO LIKE the partial below:[

    Manual Restore of a Cpanel Server Hard Disk
    I need to restore a server with Cpanel on it. All the files are available on a slave drive. The list of files I've got to do a manual restore or copy of an old Cpanel server is as follows:


    Best way of moving files will indeed be using SFTP as root. OK, before you move anything else, move this file (or when you move your user files (/home) the ownerships will be lost):



    - Edit the IPs.
    - If moving to a 7.1 box , remember to copy the 'key' entry from the 7.1 file into the old 6.2 file and add this entry as well:

    controls {
    inet allow { localhost; } keys { "key"; };

    - This will revert your root password to the same root passwd as the old box.
    - Edit the IPs.
    /etc/proftpd (dir)
    /etc/valiases (dir)
    /etc/vfilters (dir)
    /etc/ssl (dir or sometimes a symlink to /usr/local/ssl)
    /var/cpanel (dir)
    - Stop mysql before copy this one, and restart it after, the mysql root password will be reverted to the old one, so it's a good idea to edit /root/.my.cnf and either enter the old root password, or go to mysql and enter the NEW mysql root password ( mysqladmin -uroot -p password ), this needs to be done or a mysql error will occur on the user's CPanel.
    /usr/local/ssl (dir)
    - Edit the IP's, here the best bet is to bring the file into a text editor, get rid of all the text on the old file up to the FIRST VirtualHost entry (right after and replace it with the text from the new httpd.conf .. I usually just do a copy/paste in my favorite text editor, if you don't do this, most likely apache will fail.
    /usr/local/cpanel/3rdparty/mailman/lists (dir)
    /usr/local/cpanel/3rdparty/mailman/archives (dir)
    /usr/local/cpanel/base/frontend (here just grab any custom skins you might have created .. otherwise, leave it behind)
    /usr/local/frontpage (dir)
    - Inside this dir there is a symlink named 'currentversion@' .. do not copy that, also no need to copy the directory "version4.0" inside that as well.


    /home (dir)

    Restart all services, and you should be all set. If moving to a new machine, but keeping the same IP's .. you will need /usr/ips as well.


    will any of these files that are necessary for transfer be compromised by the kernal upgrade failure


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