• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Copy over Plesk installation from old hard drive

jas8522

Basic Pleskian
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
 
Back
Top