I have installed magento-2 (v 2.1.10) on Ubuntu (v 16.04 LTS) with Xampp 7.0.25
I can access xampp dashboard, I can access my website (at localhost/siteurl) but when I try to open the magento admin panel (localhost/siteurl/admin), I get ‘Access Forbidden’ error.
What I’ve tried so far –
1. Made sure apache config (at /lampp/etc/httpd.conf) has following entry
<Directory "/opt/lampp/htdocs"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
2. Adding .htaccess at magento root
3. Executing following commands –
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
and removing cache
rm -rf var/cache/* rm -rf var/generation/*
4. Setting permissions as follows –
find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;
5. Changed ownership (for htdocs, recursive) from ‘root’ to ‘daemon’ (as this is supposed to be the user running apache).
But after all these steps, I’m still not able to resolve this issue. Any suggestions would be greatly appreciated.