Boost your customer loyalty effortlessly Learn more

Shopping cart

Magento 2 You Don't Have Permission To Access This Server

magento-2-tutorial
server
web
permission
access

Your store is running Magento 2 and suddenly got this error You don’t have permission to access /magento on this server. You may get crazy with Linux folder permission in this case. No worries, there is a simple solution for that.

This error indicates that a default document could not be found at the specified URL and that directory listings are not permitted.

Magento 2 You Don’t Have Permission To Access/On This Server

Forbidden

You don't have permission to access /magento on this server.

Solution

Grant permissions

sudo chown -R $USER:$USER /var/www/magento
sudo chmod -R 755 /var/www

You can replace correct Magento path /var/www/magento

Happy coding!

Ref: Magento 2 user guide

PDF Invoice samples for Magento 2

mageplaza pdf invoice

Want to apply these above Invoice templates for your store?

See how

Please leave comments if you have any questions, feedbacks.

Comments for

You also may like these Magento 2 Extensions

One Step Checkout

$199
77 reviews

Layered Navigation

$99
44 reviews

SEO

FREE
29 reviews

Better Blog

FREE
58 reviews

Gift Card

$199
5 reviews

Reward Points

$149
4 reviews

Affiliate

$149
12 reviews