Skip to content

Breaking changes Magento 2.4.6 #20

@cakriwut

Description

@cakriwut

Issue: The script uses the latest Magento distribution. Recently Magento releases v2.4.6 that doesnt support php7.4. Due to the latest update, the installation will fail.

Ref: https://experienceleague.adobe.com/docs/commerce-operations/release/notes/magento-open-source/2-4-6.html?lang=en

Workaround:

  1. Open modules/magento-ami/scripts/ec2_install/scripts/install_magento.sh
  2. Replace the content with following to use Magento 2.4.5 instead.
    #!/bin/bash
    BASEDIR=$1
    MAGVERSION="2.4.5"
    
    sudo mkdir -p /var/www/html/magento
    sudo chown -R magento. /var/www/html
    mkdir -p /home/magento/.config/composer/
    sudo mv $BASEDIR/configs/auth.json /home/magento/.config/composer/
    sudo chown -R magento. /home/magento/.config/
    cd /home/magento
    sudo -u magento composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=$MAGVERSION /var/www/html/magento -n
    ```
    
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions