Best way to update core file in Magento 2.4 | Community
Skip to main content
Level 2
January 6, 2025
Question

Best way to update core file in Magento 2.4

  • January 6, 2025
  • 1 reply
  • 391 views

I am getting error when i install the magento 2.4.7 in xampp, after some correction i successfully installed it. I made update in app\etc\env.php and index.php

 

Is there any problem in future for update magento version.

 

app\etc\env.php

    'system' => [
    'default' => [
        'web' => [
            'unsecure' => [
                'base_media_url' => '{{secure_base_url}}pub/media/',
                'base_static_url' => '{{secure_base_url}}pub/static/'
            ],
            'secure' => [
                'base_media_url' => '{{secure_base_url}}pub/media/',
                'base_static_url' => '{{secure_base_url}}pub/static/'
            ]
        ]
    ]
],

index.php

 //require __DIR__ . '/../app/bootstrap.php';
require __DIR__ . '/app/bootstrap.php';

 

 

1 reply

SamBa4
Level 2
January 20, 2025

Updating the version will overwrite the changes I guess