cancel
Showing results for 
Search instead for 
Did you mean: 

permission issue after intalling magento 2.3.2 via composer

SOLVED

permission issue after intalling magento 2.3.2 via composer

hi

 

[xxx public_html]$ ls -al
total 1356
drwx------ 14 ddd ddd   4096 Aug 16 12:55 .
drwx--x--x 32 ddd ddd   4096 Aug 16 01:02 ..
drwx------  3 ddd ddd    151 Aug 16 12:54 .github
-rw-------  1 ddd ddd   1460 Jun 10 15:51 .gitignore
-rw-------  1 ddd ddd  12076 Aug 16 12:54 .htaccess

when I try to see the frontend, I get this message:

You don't have permission to access / on this server.
Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

 

I have run this command

find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \;

also tried

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && chown -R :ddd . && chmod u+x bin/magento

executed the commands above before I executed bin/magento setup:install

I have flushed the cache and the problem is still there

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: permission issue after intalling magento 2.3.2 via composer

Hi @Loginname,

Try the following command once:

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

You can use sudo as well.

If still face issue, then try following command s once to re generations.

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/

I hope it will help you!

View solution in original post

2 REPLIES 2

Re: permission issue after intalling magento 2.3.2 via composer

Hi @Loginname,

Try the following command once:

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

You can use sudo as well.

If still face issue, then try following command s once to re generations.

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/

I hope it will help you!

Re: permission issue after intalling magento 2.3.2 via composer

that worked for me - thanks !!!!

styzzz nyc