Magento 2.4 Setup Installation

 

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 \
--base-url=http://123.1.2.3 \
--db-host=localhost \
--db-name=magento \
--db-user=magento \
--db-password="sd@329" \
--admin-firstname=bsob \
--admin-lastname=smsith \
--admin-email=bosb@example.com \
--admin-user=bosb \
--admin-password=example@123 \
--language=en_US \
--currency=GBP \
--timezone=Europe/London \
--use-rewrites=1 

 

Share this

Related Posts

Previous
Next Post »

Pageviews from the past week