• 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.

Question FPM application served by ngnix?

Dennis Rau

New Pleskian
Good day,

I have a problem with the php dealers in Plesk 17.0.17.

I have nginx as proxyserver and php 5.5.29.

In the official Plesk instructions is described when the function

"Run PHP as an FPM application served by ngnix"

Apache (htaccess) is no longer reached for dynamic content and no URL rewriting works anymore. I have in this setting access to the htaccess or the url syntax works.

Was something changed here? Or can tell me the exact sequence for this between

"PHP run as an FPM application served by Apache"
"Run PHP as an FPM application served by ngnix"

Thank you

Greetings Dennis Rau
 
When you serve dynamic content through Nginx, you cannot use .htaccess syntax, but must translate rewrite rules to Nginx syntax. See https://www.nginx.com/blog/converting-apache-to-nginx-rewrite-rules/ for details. In the extension catalog you could try "htaccess to nginx 1.0" or online translators like "https://winginx.com/en/htaccess".

In my opinion it does not make sense to serve PHP through Nginx directly. It will not speed-up processing. Much better to have Nginx serve static files and pass the rest on to Apache.
 
Thank you for your response.

I have 2 servers with the identical configuration.

Wordpress and CMS-Contao run on the servers.

I have now selected the following settings:

Run PHP as to FPM application served by ngnix
Intelligent editing of static files
Proxymode

With both servers, the htaccess is read out and the Contao system works perfectly. Wordpress works with the above settings only with additional configuration.

I have for the Contao system no disadvantages with the configuration or however it is an error and the attitudes do not work and Apache served php.

If it is an error I would not use this configuration productively.

If this was changed by Plesk in version 17 ?! i would like to use it.
 
Your first post:

Apache (htaccess) is no longer reached for dynamic content and no URL rewriting works anymore. I have in this setting access to the htaccess or the url syntax works.

Your second:

With both servers, the htaccess is read out and the Contao system works perfectly. Wordpress works with the above settings only with additional configuration.

Could you please describe what exactly the issue is, because now it seems that everything is working?
 
Hallo Herr Debik,

ich habe gesehen dass Sie aus Deutschland kommen und spare mir nun den Google Übersetzer.

Das Problem stellt sich folgend dar:

Wie ich den Plesk Dokumentationen entnehmen kann, wird bei -PHP ausführen als FPM-Anwendung von nginx- keine htaccess mehr berücksichtigt.

Auszug Plesk Adminstratorhandbuch:
PHP von nginx verarbeiten lassen ist eingeschaltet
nginx selbst führt die Datei mithilfe des PHP-FPM-Handlers aus. Der PHP-FPM-Handler bietet erweiterte FastCGI-Features, was die Leistung von Webanwendungen, insbesondere solcher mit vielen Benutzern, verbessern kann.
Beachten Sie jedoch: Da Abfragen niemals Apache erreichen, durchlaufen Sie auch nicht die Apache-Handler. Dies bedeutet, dass einige Webanwendungen möglicherweise nicht wie erwartet funktionieren. Auch werden keine .htaccess-Anweisungen und Rewrite-Regeln für Apache angewendet.

Bei meiner Testdomain wird jedoch die htaccess vollständig in dieser Einstellung berücksichtigt.

Das freut mich ja, muss aber bedeutet das etwas nicht richtig funktioniert oder Plesk eine Änderung vorgenommen hat und die Dokumentationen nicht mehr aktuell sind.

Grüße
 
Let's please stick with the forum rules where the forum language is English. Let me translate your post briefly:

As stated in the plesk administration manual (and in my previous post) .htaccess will not be processed when the Nginx PHP FPM handler is used. However, on Dennis' host where he has selected "Nginx PHP FPM", .htaccess is still processed. The question now is whether Plesk made a change to the way that Nginx PHP FPM is handled (and includes the .htaccess rules now).
 
:) grin, i just went through (or will always be learning)... the learning curve with nginx. I like it now. I see a performance boost on my sites (but maybe it was the upgraded server, upgraded php, etc. etc)

either way, i like nginx!

but nginx, in most cases, does NOT use or see htaccess (however, things in the htaccess file can prevent a site from working correctly)

use the nginx & apache settings page to add additional directives to replace what was done in htaccess

PS. i will say, learning the directives wasn't easy for me :( but i belive worth it!
 
Back
Top