We have a Linux CentOS 7 server with PHP 7.0.9 and NGINX 1.11.3 installed. We have completed the command line installation of Magento 2.1.0. The front end loads up just fine in the browser but when I try to go to the admin back end, I am getting a 404 error page. I have been scouring the internet for a solution and none of the solutions I have found have fixed my issue. Please help!
Hi,
The first place I would check is:
What do the nginx logs say?
Also what do the magento logs say?
Regards
Brendan
Hi @JeffreyWeb
Have to tried solutions mentioned on following link Magento 2 - Localhost - Admin url returning 404
Unfortunately, that post refers to Apache, not NGINX.
@brendanb Im not seeing anything in the NGINX logs.
Where should I be looking for the Magento logs?
Hi Jefferey,
No worries. Have a look here
Magento now logs exceptions in a file under var/report when in default mode.
Just a suggestion. I use the following command from shell to watch the log file. Tail is a good way to view the file. With -f it becomes interactive.
tail -f ../var/report/logfilename.txt
Regards
Brendan
@brendanb I don't have a report folder in var..
Hi,
What about var/log ??
Regards
Also whats in the nginx logs?
/var/log/nginx/site.error.log.file
Brendan
In var/log there are two files, debug.log and system.log.
debug.log has no logs from yesterday.
system.log entries for yesterday:
The NGINX logs have no logs from yesterday either.
Is it possible that I have an error in the /etc/nginx/conf.d/default.conf file?
Would you like to see that as well?
Thank you!