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).
Solved! Go to Solution.
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.
@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.
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
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.