I have installed fresh Magento setup version 1.7. Now I want to access magento admin dashboard it is showing following error in browser.

Not Found

The requested URL /admin was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localmagento17.com Port 80

I have check magento database table core_config_data but there is no entry for admin/url rows.

enter image description here

I have changed nothing in database or anywhere, Admin dashboad was used to access before for same installation.

If I need to add entires in database please let me know values for that.


  • Have you installed with sample data or without
    – Arjun
    Commented Sep 12, 2016 at 6:49
  • there is no sample data option while installation .. I have install magento only not template/theme
    – John
    Commented Sep 12, 2016 at 6:51
  • did you tried with sitename.com/index.php/admin Commented Sep 12, 2016 at 6:56
  • Try to access admin by siteurl/index.php/admin Commented Sep 12, 2016 at 6:59
  • Add .htaccess file on root then try to access It works. Thanks... Commented Jun 22, 2018 at 10:37

1 Answer 1


If You are using Linux Ubuntu open the following file


add the following code at the top of the file

<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

restart the apache server by using the following command

sudo service apache2 restart

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.