Minimale server- en PHP-vereisten

Magento 2 draaien vereist specifieke server configuraties. Het gebruik van niet-ondersteunde PHP versies of ontbrekende extensies veroorzaakt fouten en beveiligingsproblemen. Deze handleiding behandelt de vereisten voor huidige Magento versies.

Snelle Referentie Tabel

Magento Versie PHP Versies MySQL MariaDB Elasticsearch/OpenSearch
2.4.7 8.2, 8.3 8.0 10.6 ES 8.x / OS 2.x
2.4.6 8.1, 8.2 8.0 10.6 ES 7.17, 8.x / OS 2.x
2.4.5 8.1 8.0 10.4 ES 7.17 / OS 1.2
2.4.4 8.1 8.0 10.4 ES 7.16 / OS 1.2

PHP Vereisten

PHP Versie

Gebruik altijd een ondersteunde PHP versie voor uw Magento release. Draaien op niet-ondersteunde versies:

  • Veroorzaakt fatale fouten en kapotte functionaliteit
  • Creëert beveiligingsproblemen
  • Maakt support ongeldig

Vereiste PHP Extensies

Deze extensies moeten geïnstalleerd en ingeschakeld zijn:

bcmath
ctype
curl
dom
fileinfo
filter
gd
hash
iconv
intl
json
libxml
mbstring
openssl
pcre
pdo_mysql
simplexml
soap
sockets
sodium
spl
tokenizer
xmlwriter
xsl
zip
zlib

Controleer geïnstalleerde extensies:

php -m

PHP Instellingen

Aanbevolen php.ini instellingen:

memory_limit = 2G
max_execution_time = 18000
max_input_vars = 10000
post_max_size = 64M
upload_max_filesize = 64M
realpath_cache_size = 10M
realpath_cache_ttl = 7200
opcache.enable = 1
opcache.memory_consumption = 512
opcache.max_accelerated_files = 60000
opcache.validate_timestamps = 0

Let op: Zet opcache.validate_timestamps = 1 in development voor bestandswijziging detectie.

Database Vereisten

MySQL

  • MySQL 8.0 is vereist voor Magento 2.4.x
  • Gebruik InnoDB storage engine
  • Schakel innodb_large_prefix in (standaard in MySQL 8.0)

MariaDB

  • MariaDB 10.4+ voor Magento 2.4.4-2.4.5
  • MariaDB 10.6 voor Magento 2.4.6+

Database Instellingen

innodb_buffer_pool_size = 1G
innodb_log_file_size = 256M
max_allowed_packet = 64M
tmp_table_size = 64M
max_heap_table_size = 64M

Zoekmachine Vereisten

Magento 2.4+ vereist Elasticsearch of OpenSearch. MySQL search wordt niet meer ondersteund.

Elasticsearch

  • Versie 7.17 of 8.x afhankelijk van Magento versie
  • Java 11 of hoger vereist

OpenSearch

  • OpenSearch 1.2 of 2.x afhankelijk van Magento versie
  • Compatibel alternatief voor Elasticsearch

Verifieer dat Elasticsearch draait:

curl -X GET "localhost:9200"

Web Server Vereisten

Nginx (Aanbevolen)

  • Nginx 1.x
  • PHP-FPM geconfigureerd
  • Voorbeeld config meegeleverd in Magento als nginx.conf.sample

Apache

  • Apache 2.4
  • mod_rewrite ingeschakeld
  • AllowOverride All voor Magento directory

Composer

  • Composer 2.x vereist voor Magento 2.4+
  • Composer 1.x wordt niet meer ondersteund

Controleer versie:

composer --version

Aanvullende Vereisten

Redis (Aanbevolen)

  • Redis 6.x of 7.x voor caching en sessies
  • Verbetert performance aanzienlijk

Varnish (Optioneel)

  • Varnish 7.x voor full-page caching
  • Aanbevolen voor winkels met veel verkeer

RabbitMQ (Optioneel)

  • RabbitMQ 3.11+ voor message queues
  • Vereist voor B2B en sommige async operaties

Uw Setup Controleren

Magento bevat een readiness check:

bin/magento setup:config:set --help

Of controleer PHP vereisten:

php -r "echo 'PHP Version: ' . PHP_VERSION . PHP_EOL;"
php -m | sort

Cloud Omgevingen

Adobe Commerce Cloud en managed hosting providers regelen de meeste vereisten automatisch. Verifieer met uw provider als u niet zeker bent over specifieke versies.

Meer Hulp Nodig?

Documentatie:

Support:

Artikel bijgewerkt:
star star star star star
star star star star star
Alexandru-Manuel Carabus
Magmodules sets the bar for Magento module quality and support—we check their catalog first for client feature requests, and they’re our first choice for licenses.
Google 11 Nov 2025
star star star star star
star star star star star
Matt Austin
Possibly the fastest support response times of any Magento Extension vendor. Great extensions too!
Google 09 Sep 2025
star star star star star
star star star star star
Jan Privé
Dankzij de heldere uitleg en snelle reactie van Magmodules kon mijn vraag, en dus mijn Magento-probleem, binnen enkele uren worden beantwoord. Doeltreffend, zonder moeilijke termen, gewoon zo als het zou moeten zijn.... Bedankt!
Google 05 Sep 2025
star star star star star
star star star star star
Denis Metzler
To evaluate a provider, it is not enough to consider only the product offered, but also its after-sales service, such as support and troubleshooting. Magmodules has been extremely satisfactory at all levels on multiple occasions and sets the bar at the top when comparing the competition.
Google 02 Sep 2025
star star star star star
star star star star star
Bleijenberg winkelinrichting en materialen
Goed bereikbaar, reageren snel en denken oplossingsgericht. Een aanrader.
Google 30 Jul 2025
star star star star star
star star star star star
Patrick Verduijn
Magmodules biedt plugins aan die van hoge kwaliteit zijn tegen een goede prijs, waar dit bedrijf in uitblinkt is de bereidheid om de zeldzame feedback & problemen met de plugins te willen onderzoeken, mee te willen denken in het debuggen van problemen en goede oplossingen toe te passen. In mijn decennium ervaring met Magento & 3th parties is Magmodules absoluut een uniqum binnen de markt.
Google 25 Jul 2025
star star star star star
star star star star star
Erik de Groot
Magemodules heeft hele sterke Magento extensies en een proactieve support. Al jaren heel erg tevreden over jullie service en producten!
Google 18 Jul 2025
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google 30 Jun 2025
star star star star star
star star star star star
R. U.
Erg goed team, reageren snel en duidelijk en hebben met toegang tot onze database erg goed geholpen (eigenlijk een gratis customization).
Google 18 Jun 2025
star star star star star
star star star star star
Hugo de Groot
Uitstekende support! Wij gebruiken o.a. de Rich Snippets Suite extensie voor onze Magento 2 webshop (Hyvä) en hadden een specifieke vraag over structured data op PLP-pagina’s. Binnen no-time kregen we een inhoudelijk en duidelijk antwoord. Zeer prettig contact en goed onderbouwde uitleg. Absoluut een betrouwbare partner voor Magento-extensies!
Google 13 Jun 2025