{"/api/v1/ncpl/currencies/getAll":{"body":[{"Name":"U.S. Dollar","Code":"USD","Symbol":"$","Separator":".","Culture":"en-US"},{"Name":"Euro","Code":"EUR","Symbol":"€","Separator":",","Culture":"en-US"},{"Name":"British Pound","Code":"GBP","Symbol":"£","Separator":".","Culture":"en-US"},{"Name":"Canadian Dollars","Code":"CAD","Symbol":"C$","Separator":".","Culture":"en-US"},{"Name":"Australian Dollars","Code":"AUD","Symbol":"A$","Separator":".","Culture":"en-US"},{"Name":"Indian Rupees","Code":"INR","Symbol":"Rs","Separator":".","Culture":"en-US"},{"Name":"China Yuan RMB","Code":"CNY","Symbol":"¥","Separator":".","Culture":"en-US"}],"status":200,"statusText":"OK"},"/api/v1/ncpl/usermanagement/uiuser/getHeaderUserInfo:\"{\\\"hideSupportPin\\\":true}\"":{"body":{"__ctxId":"B262E37234F9457AA1240858FD296BB8","__isError":true,"__errorType":"Nc.Platform.Abstractions.UnauthorizedException","Http_WWW_Authenticate":"Bearer","StatusCode":"Unauthorized","LogLevel":3,"Message":"","InnerException":null,"HelpLink":null,"Source":"Nc.Security.Middleware"},"status":401,"statusText":"Unauthorized"},"/api/v1/ncpl/cart/user/getShoppingCartSummary:\"{\\\"finalTotalOnly\\\":true}\"":{"body":null,"status":200,"statusText":"OK"}}

How to Install a Custom Version of Magento

Magento is one of the most powerful and popular e-commerce systems in the world. Softaculous Apps Installer allows you to install the latest version in just a few clicks.

Still, it may be necessary to use functionality that only presents in an older version. These versions should be installed manually.

In this guide, we will walk through the installation of Magento 2.4.6 via the command line/composer.

Pre-setup requirements

  • PHP version: 8.1 or higher;
  • sodium PHP extension should be enabled.;
  • Check if the composer is present via the ‘composer -v’ command. If it is not present, it can be installed using this instruction;
  • Get Public and Private authentication keys to the Magento Composer repository using this guide;
  • The full list of requirements can be found here.


We will use the subdomain magento.nctest.info to demonstrate the Magento installation steps:

  1. Make sure SSH access is enabled for your cPanel. You can find more details here.
  2. Open Terminal and navigate to a domain’s root folder, in our example magento.nctest.info, the command is ‘cd magento.nctest.info’ (the full path is /home/cpuser/magento.nctest.info):



  3. Run the following command to upload Magento via composer:

    composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=version install-directory-name

    version - can be replaced with the necessary version. You can find the list of versions here. In case it is omitted, the composer will install the latest version of Magento.

    install-directory-name - should be replaced with the name of the folder where Magento should be installed. In our example, it is the magento.nctest.info folder.

    Here is our command:

    composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.6-p12 magento.nctest.info

  4. Use the Public key as the Username and the Private key as the Password (please note that it will be hidden in Terminal due to security reasons). Keys can be generated here.


  5. Wait till the installation is finished. Once it is completed, a new magento.nctest.info folder will be created automatically inside the previous one (the full path is /home/cpuser/magento.nctest.info/magento.nctest.info). It is needed to enter it:



  6. Disable Elasticsearch running this command:

    php bin/magento module:disable {Magento_Elasticsearch,Magento_InventoryElasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}

    NOTE: Elasticsearch cannot be installed on Shared servers.

  7. Create a new database, database user, and password in your cPanel using this guide.

  8. Set up Magento using this command:

    php bin/magento setup:install --base-url=http://${site_URL} --db-host=localhost --db-name=${DB_NAME} --db-user=${DB_UR} --db-password=${DB_pass} --admin-firstname=First_name --admin-lastname=Last_name --admin-email=${admin@magento.nctest.info} --admin-user=Admin_Username --admin-password=Admin_Password --language=en_US --currency=USD --timezone=Europe/Lisbon --use-rewrites=1 --backend-frontname=admin321

    http://${site_URL} - should be replaced with the actual address, in our example it is https://magento.nctest.info;
    ${DB_NAME} - should be replaced with the new created database name;
    ${DB_UR} - the actual database user;
    ${DB_pass} - the actual database password;
    First_name - your admin first name;
    Last_name - your admin last name;
    ${admin@magento.nctest.info} - the working email as you will need to configure 2FA later to access your admin dashboard;
    Admin_Username - should be replaced with the custom admin username;
    Admin_Password - the custom admin password;
    Admin321 - can be replaced with any custom login link.

    Also, you can specify any language, timezone and currency.

    Once the installation is finished, you will see the following output:

    [SUCCESS]: Magento installation complete.
    [SUCCESS]: Magento Admin URI:
    Nothing to import.




  9. The last step is to move all the files from the /home/cpuser/magento.nctest.info/magento.nctest.info folder to the /home/cpuser/magento.nctest.info folder.

  10. Check the Magento installation in a browser.

That’s it! You have installed a custom version of Magento.
Updated
Viewed
23944 times
{}

Need help? We're always here for you.

notmyip