Magento – Unable to open admin panel after successful installation of magento on localhost in ubuntu 14.04

errorinstallationmagento2

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.

Best Answer

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/

Related Topic