Install PHP for Magento 2.4
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php7.4-soap php7.4-bcmath php7.4-xml php7.4-mbstring php7.4-gd php7.4-common php7.4-cli php7.4-curl php7.4-intl php7.4-zip zip unzip -y
Install MySQL
sudo apt install mysql-server -y
Switch MySQL Password Plugin
sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'XXXHUWKxKyCX8LmEGsHKG@cER'"
Install phpMyAdmin
sudo apt install phpmyadmin php7.4-mbstring php7.4-gettext -y
Folder permissions
sudo chown -R magento:www-data /var/www/html/
Install Composer
sudo curl -sS https://getcomposer.org/installer | php
Move composer file to the required directory
sudo mv composer.phar /usr/local/bin/composer
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.0 .
SetUp Run command
bin/magento setup:install \
Share this