• 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

Question Migrating Multiple Apache VHosts (WordPress) to Plesk in Bulk

Peter Jaffray

New Pleskian
I have done some research into Plesk and am now a paying customer of the unlimited version.

What the best way is to migrate from what I have into a Plesk environment?

When I build a site now I create a directory with the site files and chown it to a unique user for that site. I then install wordpress and a unique database schema for each site as well. I use scripts to accomplish this and set the permissions at scale.

When I try to migrate a site into Plesk, it seems I need to setup plesk for each account seperately first and then move sites. Can I move all domains into a single user account and then go from there? Any references I can read on the matter will be greatly appreciated. I am very comfortable at the command line and a small tip or the right reference is all I need.
 
You can move as many domains into a subscription as you like, but you will not be able to move these domains out of a subscription into another one with the current version of Plesk (12.5.3). So if the sites you are managing belong to individual customers, it is best practice to create seperate customer accounts and subscriptions for each customer.

As far as I know you cannot move all sites "at once". You will need to setup each account separately and then move the site and database content into that new account.

Your steps are:
- Dump database content on old server of only the database that the website is using.
- Tar all files and directories of your document root.
- Create a customer and subscription on the new (Plesk) host and add a database to the subscription.
- FTP the .tar archive and the .sql dump into the new account and unpack the files to /httpdocs.
- Import database dump into the subscription's database.
- Update configuration file of the website to use the new access credentials and paths.
- Remove .tar archive and .sql dump from /httpdocs.

To my knowledge this cannot be done automatically unless you develope a migration script and use command line utitilities to perform the necessary steps on the source and target hosts.
 
Ok thanks. I have previously written a script that results in a tarball with the site files and the .sql file. I would love to learn the commands to create a customer account from the command line. I think I could parse the wp-config.php files to pull out the db user name and use that to create the new plesk client account with and hopefully automate the migration.

Anyone know anything about creating clients in plesk from the prompt?
 
Hi Peter Jaffray,

Anyone know anything about creating clients in plesk from the prompt?
Pls. try not to mix up several questions and issues in one thread ( Plesk offers enough space here in the forums... no need to save mysql - space ^^ ). It will be confusing for searching users, when the topic doesn't meet the content of a thread! ;)
 
Last edited by a moderator:
Hi Peter Jaffray,


Pls. try not to mix up several questions and issues in one thread ( Plesk offers enough space here in the forums... no need to save mysql - space ^^ ). I will be confusing for searching users, when the topic doesn't meet the content of a thread! ;)

I thought they were the same thing. Sorry. I will put my findings here if I figure it out. I want to migrate several sites into plesk, but I am not coming from any control panel so it appears the only way to do this is the command line with a shell script. It's not really a stretch to say these are the same topic... is it? I'm new here.
 
Back
Top