• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Forwarded to devs Nginx Caching size can be set to zero, which causes a web server configuration error

Bitpalast

Plesk addicted!
Plesk Guru
Username: Peter Debik

TITLE

Nginx Caching size can be set to zero, which causes a web server configuration error

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian, latest MU
CentOS 7.9

PROBLEM DESCRIPTION

It is possible to set the Nginx cache size to zero. However, that value is considered an invalid entry into the max_size configuration parameter of Nginx. As subscribers can manage this setting by themselves, they can cause issues to the system in general by setting a false value.

STEPS TO REPRODUCE

Set the cache size to zero.

ACTUAL RESULT

Webserver configuration error (e.g. in web server configurations trouble shooter)

EXPECTED RESULT

a) Zero must not be allowed as a parameter.
or
b) When set to zero, the cache should be disabled.

ANY ADDITIONAL INFORMATION

First seen in
and confirmed issue in our own servers.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Peter, the issue PPP-50663 is resolved in 18.0.31, it seems you have a too old version of Plesk, not latest MU?
 
It's just recently occured twice in two different subscriptions on a system that was upgraded by Plesk staff and is running 18.0.31 MU #2, last updated December 1st. No other issues on that system.
 
@IgorG I think we caught it. I was able to speak to the customer who caused the false configuration. He told me that he is a noob and did NOT use the Apache/Nginx settings. Instead he disabled Nginx caching in the Wordpress Toolkit. So maybe developers might want to check whether this can cause the zero setting in the Nginx caching values. I think that this is a very reasonable starting point for further analysis, because there is another issue linked with the same configuration option in Wordpress Toolkit: When you turn Nginx caching on/off there, the Apache/Nginx setting page setting is not affected by it. For example when I turn off Nginx caching in WP Toolkit, the corresponding switch on the Nginx settings is not turned off. When I toggle the switch on the Nginx settings page, the corresponding switch in WP Toolkit is not modified. So probably what developers have done is to remove Nginx caching values or setting them to "zero" when the switch is toggled in WP Toolkit, but have not actually turned Nginx caching off or removed all the corresponding settings in the Plesk panel option for it.
 
Looks like bug is related to upgrading case when wrong cache size value was stored in the database and the user tried to turn cache from WordPress toolkit.

Reported bug for this: PPPM-12605
 
Back
Top