How can we help you today?

How to Manually Migrate Magento to Hypernode

Created by: Sophie van Vrijberghe de Coningh

Modified on: Wed, 12 Aug, 2020 at 8:54 AM

If for some kind of reason the Hypernode importer tool doesn’t work for you (you might use a module that the importer-script isn’t compatible with) you can also migrate your site to Hypernode manually. Follow the next steps to manually migrate Magento to Hypernode.

NB: If you set some environment variables, you can follow along these instructions by copy-pasting most of the commands in this document to the command line. E.g.:

Step 1: Login to your Hypernode using SSH.

ssh app@$NODE

Step 2: Make sure you can login to your current domain from there.


Step 3: Synchronize all files to the Hypernode using rsync

rsync -a --exclude=/var/\*/\* --delete $CURRENT_SSH:$DOMAIN/ /data/web/public

For subsequent runs, you can prevent your xml files from being overwritten by adding --exclude=\*.xml. If you’re using Extendware modules, make sure you don’t exclude the var/extendware folder.

Step 4: Enter /data/web/public, all subsequent steps will assume you are in it.

cd public

Step 5: Fix all broken absolute symlinks in the site. You can find them using find.

find . -type l -xtype l
modman repair

Step 6: Change the database host in the local configuration to use the Hypernode database server, called mysqlmaster.

sed -i "s/$(n98-magerun db:info host)/mysqlmaster/" app/etc/local.xml

Step 7: Create the local database user.

DBUSER=$(n98-magerun db:info username)
DBPASS=$(n98-magerun db:info password)
DBNAME=$(n98-magerun db:info dbname)


Step 8: Copy the database.

ssh $CURRENT_SSH "n98-magerun --root-dir=$DOMAIN db:dump --strip='@stripped' --stdout" | n98-magerun db:console

Step 9: Remove memcache configuration from app/etc/local.xml and fix redis configuration in app/etc/local.xml and app/etc/fpc.xml.In app/etc/local.xml the cache configuration should look like this:


And if you have FPC configured, app/etc/fpc.xml should look like this:


If you use Magento 1.7.x.x or lower, you will need to install the Redis extension from Collin Mollenhour. This is because older versions of Magento do not have a Redis extension included. Please read further instructions on how to install the Redis Extension.

Step 10: Check for hardcoded paths in files and fix them manually. You can find them using:

grep -r /home/users .

Step 11: Flush the cache, just to be sure.

n98-magerun cache:flush

Step 12:  Convert the apache configuration you might have done in .htaccess files to Nginx configuration, see this manual for some hints.

Step 13: Test your site by creating one or more DNS CNAME records to your Hypernode and configuring base URLs for them, or by temporarily adding entries to your local hosts file.

Step 14: Copy your cronjobs. More information can be found in How to Use Periodic Tasks (Cronjobs) on Hypernode.

Done? Now it’s time to check if everything works as it should!

Sophie is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.