cancel
Showing results for 
Search instead for 
Did you mean: 

bin/magento: Permission denied

SOLVED
Highlighted

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
Highlighted

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!

----
Problem solved? Click Accept as Solution!

View solution in original post

2 REPLIES 2
Highlighted

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!

----
Problem solved? Click Accept as Solution!

View solution in original post

Highlighted

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.