cancel
Showing results for 
Search instead for 
Did you mean: 

Admin 404 page - Magento 2.3.2

SOLVED

Admin 404 page - Magento 2.3.2

Hi,

I have installed Magento 2.3.2 on Ubuntu VM. I am using nginx server and php version 7.2. My frontend was messed up when I installed but I was able to fix it but my admin is still showing 404 error and is just loading the default Magento 404 page. As it is reaching showing the Magento 404 page, I assume it is not something to do with nginx config. I have pointed my nginx root to /var/www/html/{my_project_dir}. So I am accessing the page with http://localhost:8080/ -> the home page and other pages are loading fine except the admin page. I am accessing the admin using http://localhost:8080/admin. I also tried http://localhost:8080/index.php/admin, http://localhost:8080/admin/index, http://localhost:8080/admin/index/index

PS: I am using nginx and not Apache. I tried the same using Apache too but it didn't work (with mod_rewrite set). 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Admin 404 page - Magento 2.3.2

The issue is resolved now. I did a fresh Magento installation by downloading the Magento code in Zip format. I did the installation using Magento setup install. It worked now. Initially I used composer create-project and then composer update which did not work. Not sure why.

View solution in original post

4 REPLIES 4

Re: Admin 404 page - Magento 2.3.2

Hi @padmapriya126,

Make sure that your admin path is correct.

Check once in app/etc/env.php file.

Re: Admin 404 page - Magento 2.3.2

@padmapriya126During installation Magento ask for admin URL else Magento will generate a secure URL by itself. URL can be something similar to admin_xxxxxx. You may have missed that step.

 

As suggested by @Vimal Kumar look into <Magento-Root>/app/etc/env.php file for admin url. In the file on the top you may see a node like below.

'backend' => [
        'frontName' => 'admin'
    ],

In the above case admin URL is admin. In your case it may  be different.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Admin 404 page - Magento 2.3.2

Hi @padmapriya126 

 

First check the frontname of admin suggested by @Tarandeep Singh & @Vimal Kumar to make sure you are hitting right admin url . If issue persist just clean var & generated folders and run deploy & compile again . I.e 

php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile

 If my answer is useful, please Accept as Solution & give Kudos

Re: Admin 404 page - Magento 2.3.2

The issue is resolved now. I did a fresh Magento installation by downloading the Magento code in Zip format. I did the installation using Magento setup install. It worked now. Initially I used composer create-project and then composer update which did not work. Not sure why.