• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Some WordPress plugins got 403 errors

bmalkoc

Basic Pleskian
Hello. I did fresh install Plesk Obsidian Web Admin Se Edition Version 18.0.42 Update #1 But some plugins got 403 forbidden errors.

Plesk: Obsidian Web Admin Se Edition Version 18.0.42 Update #1
Server: Nginx
PHP: 8.1.4 Fpm App. by nginx.

Here is Rank Math Pro error:
screenshot 2022-03-31 16.28.01.png

Here is Elementor Pro error:
screenshot 2022-03-31 16.30.05.png

I also tried, Proxy mode, Php 7.4 Fpm and Fastcgi. I don't know what can i do more to fix this problems.
 
Solution:
Check your error_log (icon ("logs")) for ModSecurity errors and code 403. In the error description you will find a ModSecurity rule ID. Add the ID to the "Web Application Firewall" rule exclusions list. There could be more than one ID. Add them all.
 
"no such file or directory" --> The physical location does not exist and an .htaccess rule is missing to simulate the path or a rule exists but is not used because Nginx-only hosting is used.
 
Maybe you should first check whether the files and directories exist physically on the server?
If these exist, do they have correct permissions and owners so that the web server can access them? E.g. group read/write permissions?
Then you could check if .htaccess rules are needed to operate your widget and if these have been implemented.
Then you could check whether you are using Apache PHP and Apache hosting ("proxy mode" in Nginx/Apache webhosting settings). If not, activate it, because else .htaccess won't take effect.
 
Maybe you should first check whether the files and directories exist physically on the server?
If these exist, do they have correct permissions and owners so that the web server can access them? E.g. group read/write permissions?
Then you could check if .htaccess rules are needed to operate your widget and if these have been implemented.
Then you could check whether you are using Apache PHP and Apache hosting ("proxy mode" in Nginx/Apache webhosting settings). If not, activate it, because else .htaccess won't take effect.
I don't think it has anything to do with Plesk.
 
I fixed with this nginx custom config.

Code:
if (!-e $request_filename){
    rewrite ^(.*)$ /index.php break;
}
 
Back
Top