Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento CE-2.0.0 Front/Back-end “404 Not Found ” #2614

Closed
AYElsharif opened this issue Dec 4, 2015 · 29 comments
Closed

Magento CE-2.0.0 Front/Back-end “404 Not Found ” #2614

AYElsharif opened this issue Dec 4, 2015 · 29 comments
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update

Comments

@AYElsharif
Copy link

Hello,

I've download and installed a fresh Magento CE-2.0.0 on MAMP server, the installation finished successfully, The home page opened, but any other link landing to 404 error (Page not found), Also I trying to access to the back end (/admin) but unfortunately 404 error :(

I read a lot of articles like #2309 #2278 and #2272, But the problem not solved!
This problem seems common problem, but I don't know why all the suggestions solutions does not work for me ?

My environment :

MAC OS X El Capitan
MAMP Server 3.4
PHP 5.6.10
MySQL 5.6.25
Magento-CE-2.0.0+Samples-2015-11-17-06-11-18

Please help me to solve this issues, This is the fourth day with this problem :(

@mazhalai
Copy link
Contributor

mazhalai commented Dec 4, 2015

@elsharif please check your env.php file for the correct backend name. Also, did you run 'bin/magento setup:static-content:deploy ? Also can you verifymod_rewrite` is enabled?

@AYElsharif
Copy link
Author

@mazhalai Sorry for delay, I was traveling .. Today I'll check it and back to you.
Thanks

@AYElsharif
Copy link
Author

@mazhalai I checked mod_rewrite in Apache, I found it disable .. I enabled it .. restart the server, Now the website work fine but I'm still can not access to the backend page .. when I tring to access to it, the browser given me this error "This webpage has a redirect loop"

I also checked the env.php file, the backend name is correct " 'frontName' => 'admin',"

when I point to :
"http://localhost:8888/vitrena/admin/" to access to the backend,

The browser redirect me to "http://localhost:8888/vitrena/admin/admin/index/index/key/4e4e58f07f07cb5cfaa9cb561e66b664ba625ee431b3e6ace6b72d815b2e9174/"
And show me the error message "This webpage has a redirect loop"

Note: I change the key during Magento installation to "absivi"

Thanks in advance
Abdusalam,

@mazhalai
Copy link
Contributor

@elsharif you probably already tried this, but did you clean cache? bin/magento cache:clean and ``bin/magento cache:flush`. Also clean your browser cache.

@AYElsharif
Copy link
Author

@mazhalai I appreciate your quick reply,
I empty the var/cache & var/page_cache and I clear the browser cache, But I'm still getting the same error.

Abdusalam.

@paliarush
Copy link
Contributor

@elsharif Try to reinstall Magento using virtual host or at least 127.0.0.1. Cookies do not work when base URL is set to localhost.

@AYElsharif
Copy link
Author

@mazhalai @paliarush According to this solution : http://magento.stackexchange.com/questions/63117/magento-2-problem-in-admin-login

After I followed the steps in the solutions and try to open admin page, when I opened the it from Safari browser, I can successfully access to the admin control, But when I try to open it from Chrome browser they show me the same error "This webpage has a redirect loop" .. I cleared the Chrome cache but the problem not solved.

Any suggestions ?

Thanks in advance.
Abdusalam.

@mazhalai
Copy link
Contributor

@elsharif problem is with using localhost on chrome, since cookies are not set correctly. Please read this article: http://alankent.me/2015/04/25/use-of-localhost-when-installing-magento-2-quick-note/

@dusanmisic
Copy link

I have same problem as @elsharif but I didn't change anything (like keys or something else). Just admin url to simple /admin without underscore...
@mazhalai - for me not working on Firefox, too.
@elsharif - Did you solve it?

@mazhalai
Copy link
Contributor

@dusanmisic you mean you have a redirect loop on Firefox? Or some other error?

@dusanmisic
Copy link

magento2-problem

@mazhalai No redirect loops, just 404 Not Found

My configuration:
Ubuntu 15.04;
PHP Version 5.6.4-4ubuntu6.4;
MySQL 5.6.25-0ubuntu0.15.04.1;

Thanks for advice

@AYElsharif
Copy link
Author

@dusanmisic I'm still stuck in the same problem :(

@mazhalai
Copy link
Contributor

@elsharif can you please confirm if you are using a virtual host and not localhost

@dusanmisic can you try the following, in app/etc/env.php, change backend_frontname to something other than admin for example, my_admin. Clean browser cache as well as magento cache, and then go to magento4.dev/my_admin on browser.

@dusanmisic @elsharif please check apache logs: are there any error messages? Also, clean browser cache as well as magento cache.

@serzhik
Copy link
Contributor

serzhik commented Dec 28, 2015

I have same problem.
@mazhalai, your comments didn't work for me.

Apache says:
::1 - - [29/Dec/2015:00:46:12 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/7.0.0 (internal dummy connection)"

@poongud
Copy link

poongud commented Jan 12, 2016

I have same problem.
pls help me ?

http://127.0.0.1/mage2/admin/admin/index/index/key/45cede1ed1f61621f86246f71918c4d762db2be719fc9446e63b436fdfd3e5bf/

Not Found

The requested URL /mage2/admin/admin/index/index/key/45cede1ed1f61621f86246f71918c4d762db2be719fc9446e63b436fdfd3e5bf/ was not found on this server.

Apache/2.4.7 (Ubuntu) Server at 127.0.0.1 Port 80

@Raysharr
Copy link

I have same issue as well. I cannot log in with chrome, even after clearing all cache's. Only firefox works for me, but after loging in via firefox I get this message in info box "One or more indexers are invalid. Make sure your Magento cron job is running.". Could someone help with it?

I am working on OSX El Capitan, PHP 5.6.1, MySql 5.6.25 on MAMP PRO.

@poongud
Copy link

poongud commented Jan 25, 2016

@mazhalai fixed that problem, problem is var/gen file permission and change the core_config_data table value.
config_id = 1 that value updated 1 to 0.

after that clear the cache. now working.

@poongud
Copy link

poongud commented Jan 25, 2016

and one more in problem my custom payment method it not showing in frontend payment.

@mazhalai
Copy link
Contributor

@poongud please create new issue for that.

@poongud
Copy link

poongud commented Jan 25, 2016

yes created.

@chirag-wagento
Copy link
Contributor

** Remove index.php from url **
Run Command In Terminal
sudo a2enmod rewrite
sudo gedit /etc/apache2/apache2.conf

=> Add below code
<Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>

@rahulvramesh
Copy link

thanks it worked

@mazhalai
Copy link
Contributor

@elsharif is this still an issue?

@Vipul25
Copy link

Vipul25 commented Apr 12, 2016

Facing the same issue. Cleared cache and made all the changes suggested here but did not work.

Any body found any solution to this problem so far?

@mazhalai
Copy link
Contributor

mazhalai commented May 9, 2016

@elsharif closing due to non-responsiveness

@Viktorminator
Copy link

Probably you didn't copy .htaccess file to your installation folder (and probably few other hidden files):

.gitignore
.htaccess
.htaccess.sample
.php_cs.dist
.travis.yml
.user.ini

So on your Mac machine in terminal

defaults write com.apple.finder AppleShowAllFiles YES

Relaunch "Finder" (right click + Alt -> Relaunch)
Grab your hidden files and put them into core folder.

@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Oct 22, 2017
@duongquyet
Copy link

@Viktorminator Thanks, It work for me.

@premkumarroyal
Copy link

@mazhalai fixed that problem, problem is var/gen file permission and change the core_config_data table value.
config_id = 1 that value updated 1 to 0.

after that clear the cache. now working.

I faced the same problem in Magento 2.3.5 fixed it by changing this by using
SELECT * FROM core_config_data WHERE path = 'web/seo/use_rewrites'
and change the value from 1 to 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update
Projects
None yet
Development

No branches or pull requests