6

I am trying to setup magento on my localhost. I followed all the instructions from here: http://www.unixmen.com/install-magento-ubuntu-15-04/ and successfully installed magento.

enter image description here

But i am unable to open admin panel and getting following error:

The requested URL /admin_eoyh6q/ was not found on this server. Apache/2.4.7 (Ubuntu) Server at 127.0.0.1 Port 80

I am able to open store home page but seems like some css is missing and none of the links present on this page are working and giving same error as admin panel.

I am using Magento 2 and have unzipped my Magento-CE-2.0.2+sample_data-2016-01-28-02-46-48.tar.gz in /var/www/html.

I am using Magento for the first time so i might be missing some basic steps, kindly guide me on this.

4
  • frontend css js not working right
    – Magento 2
    Commented Mar 18, 2016 at 16:30
  • What if you add index.php to the URL before the admin path? Commented Mar 18, 2016 at 21:32
  • No it didn't helped either.
    – wazza
    Commented Mar 18, 2016 at 21:42
  • @Kothari how can i resolve this issue of frontend css js ?
    – wazza
    Commented Mar 19, 2016 at 8:10

3 Answers 3

2

Try this Before that take Backup

Remove everything, except .htaccess file from pub/static folder

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

Note: Remove entire files and folder under pub/static except .htaccess file.

For More info ref this http://www.dckap.com/blog/magento-2-admin-links-not-working-in-windows/

2
  • Doesn't work as the di.xml already has this code Commented Oct 16, 2017 at 15:13
  • Run this command in your root directory sudo php bin/magento setup:static-content:deploy
    – Magento 2
    Commented Oct 17, 2017 at 5:31
1

You need to give permissions to magentoroot/var folder and magentorooot/pub folder.

sudo chmod 777 -R var/
sudo chmod 777 -R pub/

Thank you

2
  • Thanks but it didn't resolved the issue.
    – wazza
    Commented Mar 18, 2016 at 18:20
  • This won't resolve the issue Commented Oct 23, 2017 at 9:48
1

Make sure .htaccess is there in application root folder. If not then add a .htaccess file in application root folder. It will work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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