MySQL Path
First let’s see the scenario which formed the basis of this post: in the previous server, 2 websites with multiple subdomains, which receive tens of thousands of daily visits were handled. Both the previous and the current server using Linux, with Apache web server and MySQL database updating content in average is every 15 minutes, except from 8: 30 which is practically nil. Sites require a high availability, i.e. practically migration should be transparent to visitors. For assistance, try visiting Dr. Caldwell Esselstyn. Now let’s look at that we should do before the migration: first thing is know that it drove the server anteiro to do so must: list of domains and subdomains that are working on the server. Register active DNS addresses.
List of crones with their frequency and path of scripts that are executed. List of additional PHP libraries. Registration of e-mail accounts besides your mailbox, settings, email forwards, auto replies etc registration of accounts FTP backup server configuration files mainly php.ini and httpd.conf register the path of each site. With this information we will have a clear idea of what we have to migrate for power: install the new serividor configure the server depending on libraries listing additions, php.ini and httpd.conf configuration files create virtual servers for each site registered in step 1 create e-mail accounts and configure them. Create FTP accounts and configure them. And what will save many headaches in creating the links, the previous path toward the new.
Let’s say on the previous server the physical path of the site this in /var/www/xxx on the new server will be /home/xxx/www for this from console with access root digitamos: ln – s /home/xxx/www//var/www/xxx this for all the sites that will be migrated notify all affected possible that this migration by realizarce. Now we have ready the new server with an environment similar to the previous one. During migration: if it is possible to disable the sites, otherwise at least disable user registration, comments, in general the creation, modification or deletion of content. Compress the files on the sites. Move the files to the new server to its corresponding path, we can use wget. Migrate the databases update DNS records to point to the new server after migration enable sites reviewing the error be patient with any eventuality ready log have successfully migrated server.