Ask a Question
Magento 2.4 minimum system requirements
1- Set up server environment
PHP, Apache, MySQL, and Elasticsearch.
- RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and similar. Magento is not supported on Microsoft Windows and macOS.
- Minimum 2GB of RAM or create a swap file if memory is less than 2GB.
- Composer 1 is required.
- Magento 2.4.2 and later is compatible with Composer 1.x and 2.x.
- Magento 2.4.1 and earlier is compatible with Composer 1.x only.
- Webservers: 2 or 3
- Database: MySQL 8.0 or MariaDB 10.4
- PHP: PHP 7.4.0
- Required PHP extensions: ext-bcmath, ext-ctype, ext-curl, ext-dom, ext-gd, ext-hash, ext-iconv, ext-intl, ext-mbstring, ext-openssl, ext-pdo_mysql, ext-simplexml, ext-soap, ext-xsl, ext-zip, ext-sockets.
- You must use Elasticsearch for Magento 2.4.2
- A valid security certificate is required for HTTPS, Self-signed SSL certificates are not supported, TLS 1.2 or later.
- Required system dependencies: bash, gzip, lsof, mysql, mysqldump, nice, php, sed, tar.
- Mail server: Mail Transfer Agent (MTA) or an SMTP server
- Recommended: Redis, Varnish version 6.4, RabbitMQ 3.8.x, php_xdebug 2.5.x, PHPUnit (as a command-line tool) 9.0.0
2- Get the Magento software
- Magento Open Source or Magento Commerce.
- Composer metapackage 4 to manage Magento components and their dependencies or clone the Magento 2 GitHub repository.
Example: Login as a user (NOT as a root user) via SSH and download Magento Open Source repository:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
3- Install the Magento software using the command line
Before installing Magento 2 you must create a database (db-name), username (db-user) and password (db-password).
Install Magento by running below SSH line (GB / UK Magento installation settings):
php bin/magento setup:install \ --base-url=http://bablisok.co.uk/ \ --db-host=localhost \ --db-name=magento \ --db-user=magento \ --db-password=magento \ --admin-firstname=admin \ --admin-lastname=admin \ [email protected] \ --admin-user=admin \ --admin-password=admin123 \ --language=en_GB \ --currency=GBP \ --timezone=Europe/London \ --use-rewrites=1 \ --search-engine=elasticsearch7 --elasticsearch-host=es-host.example.com \ --elasticsearch-port=9200
If this step fails check previous steps, make sure you are installing in the correct folder, correct mistakes, and try again.
- Alternatively, you can install Magento with a commercial script library such as Softaculous 5 that automates the installation of commercial and open-source web applications.
- Plesk also allows you to install Magento automatically via its “Applications” section but only up to version 2.1
No Comment.