0

After successfully installing Magento (environment below), url's to access storefront and admin show a 404/Not Found errors. What am i missing?

Environment:

  • macOS Mojave 10.14.2
  • Apache 2.4.37
  • PHP 7.2.9
  • MySQL 8.0

While installing:

  1. Apache is running on port 8081
  2. I chose the store name to be magento instead of magento2

Tried these:

  1. Copied .htaccess from /htdocs/magento2/app/pub to /htdocs/magento2/
  2. Updated httpd.conf file to Listen 8081 , ServerName localhost:8081 and enabled LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so

Screenshots:

enter image description here

enter image description here

2
  • You said you copied files to /htdocs/magento2 in error is magento directory, without number 2
    – BartZalas
    Jan 16, 2019 at 22:12
  • No, it is correct the full path for my magento2 directory is /Applications/XAMPP/xamppfiles/htdocs/magento2. While installing i chose the store name to be magento instead of the default magento2 Jan 16, 2019 at 22:14

2 Answers 2

0

I'm having a pretty similar issue, just on a windows machine instead. Here is another step you can try to see if it helps. So go to pub/static folder and delete everything except htaccess. Then open up app/etc/di.xml find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink” and replace to “Magento\Framework\App\View\Asset\MaterializationStrategy\Copy”. Then clear cache and maybe restart apache and try again? I got this from http://www.dckap.com/blog/magento-2-admin-links-not-working-in-windows/ which is windows specific, but I don't think that this issue is windows specific.

1
  • Thanks. Tried all of them now.. but same issue. Jan 16, 2019 at 22:12
0

After re-installing Magento with the below change, the URL's were working. I tried While installing.

  • At 3rd step : Web Configuration, while entering "Your Store Address", replace localhost with 127.0.0.1 and you can still use custom port. After install you will see the URLs to Storefront and Admin (as below).

enter image description here

  • http://127.0.0.1:8081/magento2/ and http://127.0.0.1:8081/magento2/admin_2lecxk/ should load without errors.

enter image description here

Note: I'm still not sure what fixed or how this works. I have raised a GitHub issue #20355 for Magento team to look.

1
  • You change directory to correct in installation like I was writing to magento2 , compare your screens
    – BartZalas
    Jan 17, 2019 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.