NOTE
am hosting it on Namecheap's Shared hosting using Cpanel
CodePudding user response:
It looks like an error in the file permissions. Anyway you can see here other solutions provided by namecheap.
CodePudding user response:
HTTP Error 403
only happens in WordPress on cPanel Litespeed for the following cases:
Permissions Error: Maybe there is not enough permissions to access the file. You can do the following to check if it's permission error. Run this on terminal/SSH
chmod 755 -r /USERNAME/public_html
and check afterwards if it's working. Do note that it's not recommended to keep WordPress on this. The recommended file permissions are 755 for folders and 644 for all files, so change accordingly.mod_security:
mod_security
often blocks these kinds of requests if the site is hacked or some malware script is about to run. You might wanna check if WordPress Core has changed or your Wordpress files contain some kind of malicious codes. However,OWASP® ModSecurity CRS
ruleset is known for creating many false-positives and that's why not enabled by default on cPanel/WHM. You can checkcPanel > ModSecurity
if it's available and turn it off for your domain and if it's not there, ask your provider to turn it off for your domain which would fix the issue. Do note disabling mod_security disables Web Application Firewall and you'll have to rely on your own WordPress firewall plugins for securing your site.