How can we help you today?

How to Install Magento 1 on Hypernode

Created by: Sylvia Bakker

Modified on: Wed, 24 Feb, 2021 at 2:26 PM

Although Magento 1 is End of Life since June 30 2020, it is still possible to host your Magento 1 store at Hypernode by using OpenMage. OpenMage is free of charges and allows store owners to continue the use of Magento 1 as a stable and secure eCommerce platform for the next years to come.

OpenMage can be installed by using their documentation. Don't implement OpenMage on production nodes without testing OpenMage first on a Development plan.

Starting over and in need of a fresh Magento 1 installation? Follow the steps in this article.

Do you want to install Magento 2? Installing Magento 2 on Hypernode can be done by following the steps in the article: Installing Magento 2 on Hypernode


Optional: Uninstall the Default Magento Installation

If you ordered a Hypernode with a default Magento installation on it, the default Magento installation is located in the /data/web/public directory.
In order to remove this default Magento installation, run the following command:

 n98-magerun --root-dir=/data/web/public uninstall --installationFolder=/data/web/public --force

This will delete the default database (YOURAPPNAME_preinstalled_magento), and recursively delete the /data/web/public directory.
Any instances of Magento installed in other directories will not be touched.

More information can be found on our article about deleting your Magento installation.

Install our Pre-installed Magento 1 version with ONE command

Using the command hypernode-systemctl preinstall [preinstall_type], the installation is automatically installed. The current supported preinstall_types are magento_1, magento_2, shopware_5, shopware_6, akeneo3.2 and akeneo4.0. By adding --sample-data as an argument we install the version with sample data . Take a look at the livelog command to check the progress on the update job.

Please be aware that this does not set the general Hypernode settings (php, mysql) to the proper values. This still needs to happen manually. In addition, for Magento make sure the /data/web/public folder is empty.

# Start the preinstall$ hypernode-systemctl preinstall magento1 --sample-data

Preinstall magento1 with sample data job posted, see hypernode-log (or livelog) for job progress.

# Check the preinstall status$ livelog # or hypernode-log

# Check out your new installation$ ls /data/web # See the magento directory

Installing Magento 1

Activate Magento 1 Mode

If you used Magento 2 before, and you are now switching back to Magento 1, disable the Magento 2 Mode.
This disables the configuration that is only needed for Magento 2. To do this, remove the ~/nginx/magento2.flag:

 rm ~/nginx/magento2.flag

Create a New Database

The first step should be to create a database. Luckily there is a file where most of the database credentials are already stored: .my.cnf. You connect to your database with the following command:


Create a database by using the next command:

CREATE DATABASE <database_name

After this you exit the MySQL client and write down your database name so you can use it with the installer later.

Installing Magento With n98-magerun

  • To install the latest Magento you’ll have to go to your public directory: cd /data/web/public.
    Use the following command to install Magento through n98-magerun:

    php -d memory_limit=1024M /usr/local/bin/n98-magerun install --magentoVersionByName=byte-mag-mirror-latest
    • Choose which version you wish to install. The first option [1] the most recent version * of Magento. Press “Enter”.
    • Insert the installation folder and press ENTER. Magento will now download the files of the installation.
    • Enter your database credentials:
      • database host
      • database username
      • database password
      • database name
      • database port
      • table prefix
    • Press “y” or “n” depending on whether you want to install sample data.
      If you told the script you’d like to have some sample data, better grab a cup of coffee or tea as this might take a while..
    • You’re asked to fill in some information to finish the installation.
      You have to submit the following information:
      • session save
      • admin frontname
      • default currency code
      • locale code
      • timezone
      • admin username
      • admin password
      • admin’s firstname
      • admin’s lastname
      • admin’s email
      • base url
    • After this, the script will install Magento for you.
    • When the installation is finished, flush your caches.
    • When you’re asked if you want to write the base-url to your .htaccess file, press “n” and the script will reindex all data in your shop.
    • The installation is complete.
      You’re presented with all the checks the script did to ensure Magento was successfully installed on your Hypernode.

NB:If our Magerun version doesn’t support the latest version of Magento, you’ll have to install the latest dev version of Magerun and use this to install Magento. You use the following commands to get the latest version of Magerun and install Magento: 

wget -O ~/n98-magerun
chmod +x ~/n98-magerun
~/n98-magerun install

Move the Magento Files to the Right Folder

If you followed this guide, your Magento files are now located /data/web/public/magento.
Move these files to the /data/web/public directory and delete the Magento folder after this.

You can use the following commands to do this:

cd public/magento
mv * ..
mv .htaccess ..
mv .htaccess.sample ..
cd ..
rm -rf magento
rm -rf index.html

Your shop will now be visible through your Hypernode URL.

NB: Nginx doesn’t support .htaccess files but Magento needs them to work properly.That’s why we don’t delete the .htaccess files

Optional: Change Your Base-Url

If for some reason you change your mind about which base-url Magento should listen to,
you can use the following commands to change the base-url settings:

n98-magerun config:set web/unsecure/base_url URL
n98-magerun config:set web/secure/base_url URL

NB: Change URL to the URL you want Magento to listen on. In case you want to use your appname as a base-url (when you’re still testing) use

Configure Redis as Cache Backend

Follow the steps mentioned in the article Configure Redis to configure Redis as your cache backend.

Optional: Configure Lesti::FPC

If you’d like to use Lesti::FPC on Hypernode,
please follow the steps mentioned in article Configure Lesti::FPC.





Development plan

Sylvia 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.