cancel
Showing results for 
Search instead for 
Did you mean: 

Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

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!

9 REPLIES 9

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

Hi,

 

The first place I would check is:

What do the nginx logs say?

Also what do the magento logs say?

 

Regards

Brendan

Developer

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

Hi @JeffreyWeb

 

Have to tried solutions mentioned on following link Magento 2 - Localhost - Admin url returning 404

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

Unfortunately, that post refers to Apache, not NGINX.

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

@brendanb Im not seeing anything in the NGINX logs.

Where should I be looking for the Magento logs?

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

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

Developer

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

@brendanb I don't have a report folder in var..

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

Hi,

 

What about var/log ??

 

Regards

Developer

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

Also whats in the nginx logs?

 

/var/log/nginx/site.error.log.file

Brendan

Developer

Re: Admin 404 - PHP 7.0.9/NGINX 1.11.3/Magento 2.1.0

In var/log there are two files, debug.log and system.log.

debug.log has no logs from yesterday.

system.log entries for yesterday:

Capture.JPG

 

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!