• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

Magento2: Configuration File

Afsal

  • 3 min read
Magento2: Configuration File

Generating audio, please wait...

Magento is the most popular e-com application and is widely used for millions of online stores. Due to its wide acceptance and popularity, each change in the application invokes high levels of curiosity and confusion to some.  The recent upgrade Magento2 is quite effective but creates some confusions as Magento 2 configuration file is a bit different than of previous versions.

Here I am trying to give you some insights about the Magento 2  configuration file changes and the corresponding changes in the overall behavior of the application.

Main configuration file change

The configuration file of older versions of Magento which contained the database information, admin URL information, etc.. was located at <magento root>/app/etc/local.xml .

In Magento 2 the similar configuration file is located at <magento root>/app/etc/env.php

 root@server [/home/server/public_html/magento2]# cat ./app/etc/env.php 

Sorry guys, I am not gonna reveal my configuration file :-)) . Since it is big file , let us focus more into the areas where both of us are more interested.

admin_url

I assume that you are familiar with Magento application and what is the relevance of “admin_url” . You can identify the admin interface access URL of Magento from the configuration file app/etc/env.php as well


'backend' =>
array (
'frontName' => 'admin_mg',

),

The admin url name is specified at the following part. ‘admin_mg’ is the url name, i.e, go to magento_base_url/admin_mg to get the Admin login page.

Here in my case the the URL is https://domain.com/store/admin_mg

Database Details

The database details are specified at the following part

'db' =>
array (
'table_prefix' => '',
'connection' =>
array (
'default' =>
array (
'host' => 'localhost',
'dbname' => 'server_magento2',
'username' => 'server_mage2',
'password' => 'password',
'active' => '1',
),
),
),

Magento Mode

The current Magento mode is specified in the following part, i.e, production or developer mode.

'MAGE_MODE' => 'production',

Cache Types

The cache types that are currently enabled and disabled are specified here. That is, 1 for enabled and 0 for disabled.

'cache_types' =>
array (
'config' => 1,
'layout' => 1,
'block_html' => 1,
'collections' => 1,
'reflection' => 1,
'db_ddl' => 1,
'eav' => 1,
'config_integration' => 1,
'config_integration_api' => 1,
'full_page' => 1,
'translate' => 1,
'config_webservice' => 1,
'compiled_config' => 1,
),

modules
The list of modules that are currently enabled and disabled can be obtained from the file /app/etc/config.php. The 1 denotes enabled modules and 0 denotes disabled modules.

root@server [/home/server/public_html/magento2/bin]# cat ../app/etc/config.php
< ?php return array ( 'modules' =>
array (
'Magento_Store' => 1,
'Magento_AdvancedPricingImportExport' => 1,
'Magento_Directory' => 1,
'Magento_Theme' => 1,
'Magento_Backend' => 1,
'Magento_Backup' => 1,
'Magento_Eav' => 1,
'Magento_Customer' => 1,
'Magento_BundleImportExport' => 1,
'Magento_CacheInvalidate' => 1,
'Magento_AdminNotification' => 1,
'Magento_Indexer' => 1,
'Magento_CmsUrlRewrite' => 1,
'Magento_Config' => 1,
'Magento_ConfigurableImportExport' => 1,
'Magento_Msrp' => 1,
'Magento_Contact' => 1,
'Magento_Cookie' => 1,
'Magento_Cron' => 1,
'Magento_CurrencySymbol' => 1,
'Magento_Bundle' => 1,
'Magento_CustomerImportExport' => 1,
'Magento_Deploy' => 1,
'Magento_Developer' => 1,
'Magento_Dhl' => 1,
'Magento_Usps' => 1,
'Magento_Variable' => 1,
'Magento_Version' => 1,
'Magento_Webapi' => 1,
'Magento_Weee' => 0,
'Magento_CatalogWidget' => 1,
'Magento_Wishlist' => 1,
),
);

Thank you for your time 🙂

Get 24/7 expert server management

  • Linux
  • magento
Magento2: Configuration File

How to Redirect Visitors based on IP Location

How to Redirect Visitors based on IP Location
  • Linux
logo

Introduction to Magento2 Command Line Interface (CLI)

Introduction to Magento2 Command Line Interface (CLI)
  • Linux
  • magento
logo

PHP script to Change MySQL Table Prefix

PHP script to Change MySQL Table Prefix
  • Howtos
  • Linux
  • magento
  • MySQL
  • WordPress
logo

Steps to enable TLSv1.2 for PayPal /Stripe connections

Steps to enable TLSv1.2 for PayPal /Stripe connections
  • Howtos
  • Linux
  • Troubleshooting
logo

Posts by Afsal

Afsal is a tech enthusiast who is always ready to learn new technologies and explore new territories. Although his current focus revolves around the System Administration world, his never ending passion for technologies always keeps him active in other areas as well. He is currently working as a Systems Engineer at SupportSages.