cancel
Showing results for 
Search instead for 
Did you mean: 

bin/magento: Permission denied

SOLVED

bin/magento: Permission denied

In terminal I entered:

 

bin/magento deploy:mode:show

 

It returned the warning:

 

bin/magento: Permission denied

 

This file is set to 644, what should it be set to?  Or is there another issue?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: bin/magento: Permission denied

Hi @bigbob2 

There might be some permission issue.
https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento 

 
I hope it will help you!

View solution in original post

3 REPLIES 3

Re: bin/magento: Permission denied

Hi @bigbob2 

There might be some permission issue.
https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento 

 
I hope it will help you!

Re: bin/magento: Permission denied


@Vimal Kumar wrote:

Hi @bigbob2 

There might be some permission issue.
https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento 

 
I hope it will help you!


Thanks so much, changing the file permission to 755 fixed my issue.

Re: bin/magento: Permission denied

This is amazing, thank you

hamza razad