Magento 2 / NGINX

Magmi NGINX configuration

by ,

We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

What is Magmi

Magmi is a Magento Mass Importer developed as a magento DATABASE client, (ie not a magento extension) , that operates directly in SQL and is the result of a deep analysis of the Magento Database Model. The first magmi goal was catalog import & update.

Nginx configuration for Magmi

Download and put Magmi source files to your Magento directory, not into pub directory!

Following that, use the following config:

location ~ /magmi/(.*) {
    root /srv/www/;
    try_files /web/$1 /web/$1/;
    location ~ ^/magmi/(.*\.php)$ {
        try_files /web/$1 =404;
        fastcgi_pass   unix:/var/run/php-fpm/;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  PHP_FLAG  "session.auto_start=off \n suhosin.session.cryptua=off";
        fastcgi_param  PHP_VALUE "memory_limit=2G \n max_execution_time=3600";
        fastcgi_read_timeout 3600s;
        fastcgi_connect_timeout 3600s;
        include fastcgi_params;

Now you can access

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: