• What are the steps to install Magento?

    In this knowledgebase we are mentioning the steps to install Magento 2 with a compressed Magento software archive (.zip or .tar)

    Prerequisites to install Magento :

    Before you continue, make sure you’ve done all of the following:


    Note – For best performance, you should use a minimum 8 GB of RAM and SSD. To set up a server, you can take the help of Cloudkul as well.


    Steps to download the Magento software :

    Magento Open Source Edition –

    Download the software from – www.magento.com/download

    Choose either the software or the software and sample data:

    • Magento-CE-<version>.* (without sample data)
    • Magento-CE-<version>+Samples.* (with sample data)

    download magento


    Magento Commerce Edition –

    Use the following steps:

    1. Go to www.magento.com
    2. In the top horizontal navigation bar, click My Account.
    3. Log in with your Magento username and password.
    4. In the left navigation bar, click Downloads.
    5. In the right pane, click Magento Enterprise Edition 2.X > Full Release or Magento Enterprise Edition 2.X > Full Release + Sample Data for the software.
    6. Follow the instructions on your screen to complete the Magento Commerce download:
      Magento-EE-<version>.* (without sample data)
      Magento-EE-<version>+Samples.* (with sample data)
    7. Transfer the installation package to your development system.


    Steps to Transfer the Magento archive to your server :

    1. Install and configure a file transfer protocol (FTP) or secure copy protocol (SCP) client to transfer the Magento software from your computer to your server.

    There are many ways to configure FTP and SCP. The following are a few packages you can use.

    2. Create a connection to your Magento server.

    Follow the prompts on your screen or consult the documentation provided with your FTP software for more information.

    3. After you log in to your server, browse to locate the Magento Open Source or Magento Commerce archive on your local system.

    On the remote system, browse to locate the web server docroot directory.

    The following figure shows an example.

    Intall Magento

    4. Transfer the archive from your local system to the web server docroot directory.

    On some FTP client software, you do this by dragging and dropping.

    5. Wait while the transfer completes.

    6. Log in to your Magento server, or switch to, the Magento file system owner

    7. Change to the web server docroot or the virtual host directory.

    8. Create a subdirectory for the Magento software.

    If you set up a virtual host, the subdirectory name must match the name in your virtual host.

    For example,

    mkdir magento2ce
    mkdir magento2ee

    You can also use a generic directory name

    mkdir magento2

    9. Copy the Magento archive to that directory.

    For example,

    cp /var/www/Magento-CE-2.4.0+Samples.tar.bz2 magento2

    9. Copy the Magento archive to that directory.

    10. Access to the web server’s docroot and create the database.


    Note – If you have uploaded the extracted file then skip the next step (Steps to extract the Magento on your server). And in case of a non extracted file, move to the next step. 

    Steps to extract the Magento on your server :

    Log in to your Magento server as, or switch to, the Magento file system owner and extract the software package in the web server docroot using one of the following commands:

    File and command format to extract – 

    for   .tar.gz         use         tar zxf <filename>
    for    .zip             use         unzip <filename>
    for    .tar.bz2      use         tar jxf <filename>

    The Magento software extracts to the directory you created. After the file has extracted, either delete the Magento archive or move it to another directory.

    Please do contact us for any further queries or requirements. You can also check our Magento 2 Extensions for additional features.


Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Need Any Help?

Got Stuck with something serious or you wish to hire us for a while. We are here to hear from you, feel free to reach us and we'll get back to you as soon as possible.

Contact Us
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home