- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019
04:50 AM
08-16-2019
04:50 AM
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
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019
04:55 AM
08-16-2019
04:55 AM
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!
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!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2019
04:55 AM
08-16-2019
04:55 AM
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!
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020
03:08 AM
02-27-2020
03:08 AM
Re: permission issue after intalling magento 2.3.2 via composer
that worked for me - thanks !!!!
styzzz nyc