• 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

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • 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 "fpm application served by apache" generates randomly 404 not found

Arian

New Pleskian
Hi Guys,

Maybe you can help me.. I'm experiencing that a new created subscription (in some rare cases) is not working probably due to generating on randomly bases a 404 Not found. This is reproducible by just refreshing the page a few times.

not-found-1.png

The server is running 100+ sites and just 3 subscriptions/sites has this issue right now and i cannot figure out why this is happening.
Every is subscription has the same default settings, like proxy mode on, Smart static files processing on and "FPM application served by Apache" is default selected.

So if i turn off proxy mode, smart static files processing will be greyed out and the PHP handler will be switched over to "FPM application served by nginx".
Suddenly the problem is then gone.
Even after switching proxy mode on again because the 'only' setting what i know is that the PHP handler wil they stay the same.. like "FPM application served by nginx".

So i think the problem is something around PHP handler in specific the "FPM application served by Apache", because when i switch it back to "FPM application served by Apache", the problem will start again.

The problem is also not in the site content because what i'm trying to install is an DokuWiki/Moodle (through installatron) on the same way what i already have done multiple times before and that doesn't have the issue. :confused:
 
Last edited:
The problem can occur by scripts that simulate that they deliver static content and their corresponding rewrite rules. What happens is that on the first attempt that content is not yet cached in the reverse proxy so Nginx requests the content from Apache, where it is generated by a script. On attempts that follow however, some caching, specifically Nginx cache, thinks this is a static file it can service directly and preferrably from its own memory. But the file does not really exist on disc, because it is content that only acts as if it was static, but in reality was generated on-the-fly by a script. For that reason it is now not found and a 404 is returned.
 
I understand what you're saying, but i cannot relate it to the problem i have. I'll try summarize some scenario's, i did

  • Proxy mode checked, Smart static files processing checked and "FPM application served by Apache" selected
    Problem with randomly 404 page/url not found or not loading certain files (dynamic or static files)

    not-found-2.png

    not-found-1.png

    not-found-3.png

  • Proxy mode checked, Smart static files processing unchecked and "FPM application served by Apache" selected
    Problem with randomly 404 not found or not loading certain files (dynamic or static files)

    not-found-4.png

    not-found-1.png

  • Proxy mode unchecked, Smart static files processing unchecked and "FPM application served by nginx" automaticly selected

    No Problem.



  • Proxy mode checked, Smart static files processing unchecked and "FPM application served by nginx" keep selected
    Only problem with randomly not loading certain files (dynamic or static files)

    not-found-5.png

  • Proxy mode checked, Smart static files processing checked and "FPM application served by nginx" keep selected
    Only problem with randomly not loading certain files (dynamic or static files), but after a few times its gone.


  • Proxy mode checked, Smart static files processing checked and "FPM application served by Apache" selected
    After a few times directly the same as scenario 1

I've have installed multiple DokuWiki's on the same way (and still running and do production work) and settings as scenario 1 eq. "Proxy mode checked, Smart static files processing checked and "FPM application served by Apache" selected" so how come that these one's has not that issue at all and this particular one does ??
 
Last edited:
Back
Top