Downloaded the magento2. Renamed package.json.sample to package.json and installed the magento using composer install command.
Initially had few permission error which I fixed. Now when loading the homepage its throwing me the error as shown in the image.
I am running it on nginx.
The /var/log/nginx/error.log has nothing and even the php-fpm logs seems ok.
where might have the things gone wrong. Not able to figure out as the error logs are empty.
Hello taragurung,
It is a common error that Magento users face after installing their Magento site, even if the installation is successful: 404 Not Found on the Setup page. The error usually occurs while setting up a new server or installing & upgrading extensions.
You can follow the below steps to fix the Setup page 404 error on your site,
Flush Magento cache:
php bin/magento cache:clean rm -rf var/cache/* rm -rf var/generation/*
Re-check your admin URL in env.php:
The error can appear If you have mistyped your admin URL. First, ensure that you have the admin URL correct,
Add/replace .htaccess file in the root folder:
RewriteEngine on RewriteCond %{REQUEST_URI} !^/pub/ RewriteCond %{REQUEST_URI} !^/setup RewriteCond %{REQUEST_URI} !^/update/ RewriteCond %{REQUEST_URI} !^/dev RewriteRule .* /pub/$0 [L] DirectoryIndex index.php
Delete var/cache folder:
SELECT * FROM core_config_data When path = 'web/seo/use_rewrites'
https://your_magent_base_url/index.php/your_admin_url/
Thus, you should try the steps mentioned above to fix the issue of your Magento site. I hope the above methods help you to resolve the error.
-------------------------
Regards,
Rex M