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

The Most Popular Extension Builder for Magento 2

With a big catalog of 234+ extensions for your online store

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. The permission settings of your server should be changed.

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

You may encounter the problem as follows:

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

That’s how you can fix the error ‘ You don’t have permission to access/on this server’ with ease. If you still have problems, leave comments below!

Happy coding!

Related Post

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service

Explore Our Products:

People also searched for

Subscribe

Stay in the know

Get special offers on the latest news from Mageplaza.

Earn $10 in reward now!

Earn $10 in reward now!

comment
iphone
go up