1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Copy over Plesk installation from old hard drive

Discussion in 'Plesk for Linux - 8.x and Older' started by jas8522, Jan 27, 2006.

  1. jas8522

    jas8522 Basic Pleskian

    24
    23%
    Joined:
    Feb 3, 2005
    Messages:
    80
    Likes Received:
    0
    Location:
    Halifax, Nova Scotia Canada
    We recently had a hacker in our box that managed to adjust system files so that on reboot the os continuously segfaulted. We had to install a new hard drive and get everything running on that and copy everything from the old drive to the new one. This is the procedure we followed, hopefully it will help someone else in the same situation!

    Procedure:

    1) Install OS (same box, same version of OS and Plesk)
    3) Stop all services including plesk admin
    4) Tar the following directories on the old drive (tarred to maintain privileges):

    /usr/local/psa
    /var/lib/mysql
    /var/www/vhosts
    /etc/shadow
    /etc/passwd
    /var/lib/psa/dumps (backup utility in Plesk)
    /var/qmail (includes mailnames)
    /etc/httpd/conf
    /etc/mail/spamassassin/local.cf (for any customized spamassassin configs)
    /var/spool/cron (cron tabs!)

    The command is tar -cvf <tarball-filename> <directory-to-add>

    5) Try starting all services again!

    If the new install of Plesk changes the vhosts dir, make a symlink. For example, our old install was in /var/www/vhosts, while the new one became /home/httpd/vhosts (since it was a native 7.5.3 install that we upgraded to 7.5.4).

    Some modules for Apache were not installed for some reason, used yum install <module> to get these, and it worked fine. This whole time we were using the ART Yum repository and updated to the latest version of Plesk, PHP, MySQL, etc. using this. Thanks ART!

    Webmail ceased to function following this process. Try this first:

    http://forum.plesk.com/showthread.php?threadid=18343&highlight=A+fatal+error+has+occurred

    If that does not fix it, then it's MySQL not accepting old style passwords, the fix for that can be found here:

    http://dev.mysql.com/doc/refman/5.0/en/old-client.html

    Run the suggested commands using the username horde, and the horde password found in:

    /etc/psa/.webmail.shadow

    Problem with Frontpage extensions

    To fix this, I had to disable extensions on the domain with the problem, go in to the httpdocs folder for the domain and delete the _vti and _private files. You may also have to do this for every single subdirectory of httpdocs.

    rm -rf _vti*
    rm -rf _private

    Then re-enable frontpage extensions in Plesk.

    I think that about does it, hopefully this will be helpful for someone else doing the same thing!

    Jordan
     
Loading...