cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.1 on CentOS PHP7.0.x After Install Admin Not Found

Magento 2.1 on CentOS PHP7.0.x After Install Admin Not Found

So I know there are a gazillion threads out there on this admin not found topic and I've searched for 2 strait days trying a tone of different solutions but none has worked.

 

So here's what I've got:

- CentOS 7.5 running PHP 7.0.31 & with mod_rewrite enabled

- Properly installed Magento 2.1

- Proper DB set up (I believe)

 

For the life of me, I still cannot get the admin page. I'm getting the "Not Found" "The requested URL /admin_1wovc9 was not found on this server."

 

What I've tried so far..

- Checked and added htaccess to root dir

- Cleared Magento Cache several times

- Did the bin/magento setup:static-content:deploy

- Ensured all nec files/dirs are set with proper permissions owner/group

 

Somebody please help. I'm pulling my hair out.

5 REPLIES 5

Magento2 Proxy Design Pattern et génération de code

Re: Magento2 Proxy Design Pattern et génération de code

How does this help? This has no bearing on my issue.

Re: Magento 2.1 on CentOS PHP7.0.x After Install Admin Not Found

Hello @drew_bolton,

 

Please make sure admin front name is perfect or not, you can find out on this app/etc/env.php in backend->frontName

 

Also, Try to access like http://baseurl/index.php/admin_1wovc9 - If it's working well then mode rewrite issue.

 

Let us know if you have trouble in it.

 

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

 

 

Re: Magento 2.1 on CentOS PHP7.0.x After Install Admin Not Found

So I finally figured out what went wrong. 

I was following the guide as outlined in the Magento docs step by step. This means I also created the subdirectory "magento" in my doc root, then unpacked everything there and began installing there.

What I did not realize was that wherever I installed it, I should not change the base URL.

So basically my install was located at: "www.myDomain/magento/". BUT, at the option where I can specify my admin path, I changed it so it only read "www.myDomain/" as my base, and "www.myDomain/admin" as my admin path. This apparently broke everything, thus the reason why I got a 404 on everything. 

I resolved it by simply not installing it to a subdir, problem solved!

 

Thanks for all feedback!

Re: Magento 2.1 on CentOS PHP7.0.x After Install Admin Not Found

Hello @drew_bolton,

 

You can find admin router name in my above message. Please check it.

If you still got an issue then please add index.php between admin and base URL like www.myDomain/index.php/admin

 

 

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