Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1194351
Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 2 years ago.
Improve this questionWordpress permission issues. I'm getting Forbidden You don't have permission to access this resource even after setting the below permissions. This happens while trying to access pages like wp-admin/plugins.php. The site itself is ok
sudo chown -R www-data:www-data /var/www/site
sudo find /var/www/site/ -type f -exec chmod 640 {} \;
sudo find /var/www/site/ -type d -exec chmod 750 {} \;
After this it was still not working. I decided to give the directory full permissions chmod -R 777 but still it didn't work
Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 2 years ago.
Improve this questionWordpress permission issues. I'm getting Forbidden You don't have permission to access this resource even after setting the below permissions. This happens while trying to access pages like wp-admin/plugins.php. The site itself is ok
sudo chown -R www-data:www-data /var/www/site
sudo find /var/www/site/ -type f -exec chmod 640 {} \;
sudo find /var/www/site/ -type d -exec chmod 750 {} \;
After this it was still not working. I decided to give the directory full permissions chmod -R 777 but still it didn't work
1 Answer
Reset to default 1I found out that the issue was on .htaccess
file. I restored the file to the original wordpress config and it work fine again
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Here is the wordpress htaccess config wordpress htaccess
本文标签: Forbidden You don39t have permission to access this resource Apache2441 (Ubuntu) Server
版权声明:本文标题:Forbidden You don't have permission to access this resource. Apache2.4.41 (Ubuntu) Server 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738477416a2088943.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
.htaccess
file, server config problems, ... – Pat J Commented Aug 2, 2022 at 20:39