• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

Resolved Nginx error 403 -Css not load for admin url

Aethem

New Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.53 Update #2
Hello Plesker,
I did the recommended security changes via the wptoolkit.

After this admin url lost the CSS.
2023-08-02 09:28:20Errorxx.x.xx.xx.xx403GET /wp-admin/load-styles.php?c=0&dir=ltr&load%5Bchunk_0%5D=dashicons,admin-bar,wp-pointer,site-health, common,forms,admin-menu, da shboard,list-tables, edi t,rev isions,media,themes,about,nav-m&load%5Bchunk_1%5D=enus,widgets,site-icon,l10n,buttons,wp-auth-check&ver=6.2.2 HTTP/2.0
https://staging.plexwind.com/wp-admin/
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188
371nginx SSL/TLS acces

I tried to remove the applied security via the pwtoolkit but it was not applied correct.

i.e. remove in wpconfig: define('CONCATENATE_SCRIPTS', false);

I removed the row from the wp-config.php file by hand.

As far as I can see this restrictions is added to /etc/nginx/plesk.conf.d/vhosts/domain.com as well but it's autogenerated and wil be overwritten on any changes. How is the configuration created

Maybe this error causes another applied security via the wptoolkit. I can't be sure it will be removed by unchecking the dependent security block in wptoolkit

Temporaly I disable the WAF in the Plesk Settings with no effort.

Currently I'm lost how to continue with the troubleshooting.

I would be very grateful for help
 
tried to remove the applied security via the pwtoolkit but it was not applied correct.
Could you please describe what you mean by this? Did saving the new setting not work? Or could you not uncheck the checkboxes to save the new configuration?
 
Hi Peter,

please see my seetings below.

i.e. Disable scripts.. and Disable file editing Status turns not into green after "Secure" it, but the Setting is written to the wp-config.php

1690972468846.png
 
- Have you verified that the settings exist only exactly once in the wp-config.php file?
- Is it a default wp-config.php file or was it modified in any way?
 
-I just saw it's a similar entry autogenerated in the nginx config file, but there is no config display in plesk.
-It's default wp-config.php file
 
Something seems to be out of sync between web server configuration, wp-config.php and WP Toolkit. Maybe it can help to "detach" the WP Toolkit from this website, then run "# plesk repair web <your domain name>", clear the unnecessary directives from wp-config, remove the ".wp-toolkit-ignore" file from the document root directory of the website, then "scan" with WP Toolkit again for the website.
 
Hello Peter,

thank you for your feedback.

-I did the command plesk repair web <your domain name>"
-no costume lines on wp-config
-I don't find .wp-toolkit-ignore

The Css for the admin backend still don't load correct.
 
Hello Peter,

thank you for your feedback.

-I did the command plesk repair web <your domain name>"
-no costume lines on wp-config
-I don't find .wp-toolkit-ignore

The Css for the admin backend still don't load correct.
Did you detach the site from the WPT first?

Schermafbeelding 2023-08-29 160300.png
 
I didn't, sorry.
-I did detach
-Run the Plesk repair command again.
-still cant find the file .wp-toolkit-ignore

BUT, the CSS is loading. Many thanks!

How can I reconnect the wp toolkit?
 
Good to read that this solved your issue.

To reconnect your website again to the WP toolkit, remove the .wp-toolkit-ignore file in the document root of your site and afterwards click the "scan" button in the WP toolkit. If you have a lot sites scanning might take a few seconds before your sites get found.
 
Back
Top