cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

After download magmi from https://github.com/macopedia/magmi-m2 ( Branch:Magento2 ) and paste into root folder, then run www.giri.local/magmi/web/magmi.php getting 404 error page not found.

How to solve this issue?

11 REPLIES 11

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

Hi @Aveeva ,

 

Can you please check below Magento Stack Exchange Link for your issue.

https://magento.stackexchange.com/questions/208225/how-do-i-install-the-magmi-for-magento-2-extensio...

 

Hope it helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

@Nishu Jindal Yes, i update my database details, still get the issue?

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

Hi @Aveeva ,

 

can you try enabling error reporting on the Website, So that we will get more clue related to the error?

Add below lines in the index.php

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 
Hope it helps you!
Problem Solved! Click Kudos & Accept as Solution!

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

@Nishu Jindal  

Access forbidden  by Nginx Server

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

Hi @Aveeva ,

 

Can you please check this link

https://www.ionos.com/community/server-cloud-infrastructure/nginx/solve-an-nginx-403-forbidden-error...

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

@Nishu Jindal  This is magento2.3 Nginx configuration

 

map $http_host $MAGE_RUN_CODE {
default '';
www.grocery.local grocery;
}

server {
listen 8087;
server_name www.giri.local www.grocery.local;
set $MAGE_ROOT /usr/share/nginx/html/giri;
include /usr/share/nginx/html/giri/nginx.conf;
error_log /usr/share/nginx/html/giri/giri_error.log;
access_log /usr/share/nginx/html/giri/giri_access.log;
set $MAGE_MODE developer;
set $MAGE_RUN_TYPE website;
}

upstream fastcgi_backend2 {
server 127.0.0.1:9000;
}

Is possible to configure magmi for this same Nginx or Should create a new one?

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

Hi @Aveeva ,

 

can you please try adding below configurations as well.

location ~ /magmi/(.*) {
    root /srv/www/example.com/magmi;
    try_files /web/$1 /web/$1/;
    location ~ ^/magmi/(.*\.php)$ {
        try_files /web/$1 =404;
        fastcgi_pass   unix:/var/run/php-fpm/php-fpm-example.com.sock;
        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;
    }
}

Hope this helps you.

Problem Solved! Click Kudos & Accept as Solution!

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

@Nishu Jindal  Nginx failed,

 

path : etc/nginx/conf.d/magmi.conf

 

location ~ /magmi/(.*) {
root /usr/share/nginx/html/giri/magmi;
try_files /web/$1 /web/$1/;
location ~ ^/magmi/(.*\.php)$ {
try_files /web/$1 =404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm-example.com.sock;
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;
}
}

Re: Why do I get 404 on `/magmi/web/magmi.php` for Magmi in Magento 2.3?

@Nishu Jindal  Any help with following error?