• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Enabling php-fpm

prateekvarma

New Pleskian
Hello,
I'm using Plesk 12, and i wanted to enable php-fpm for the nginx reverse proxy. I've enabled it using "updates and upgrades" option and "add/remove components".
But my phpinfo shows "Server API --- CGI/FastCGI" and not "FPM/FastCGI".
Anyone knows whats wrong?
 
Hi prateekvarma,

please be aware, that installing additional components doesn't change your current configuration, if the additional component doesn't replace an existing one. To be more detailed, please remember, that your domain/subdomain - specific hosting setting in Plesk 12.0.18 has the standart PHP setting "FastCGI", as shown here:

PHP.png


If you don't change this domain/subdomain - specific setting at "Websites > Hosting Settings", then the actual setting for the domain/subdomain will be used untill you change it.


For Plesk 12.5, the look is a bit different, as for example:
Screen_Hosting-Settings_001.jpg Screen_Hosting-Settings_002.jpg Screen_Hosting-Settings_003.jpg
 
Hello,
I am using Plesk 12.0.18, but the Web App edition. The screenshot you have is different than what i see on my panel. Could you tell me what exactly to change?
For example,
1.) go to "hosting settings", and turn off the "php support" checkbox?
2.) Or go to "hosting settings", and change the "Run PHP as" dropdown to "CGI application or Apache module" in the php support section?
3.) or uncleck the CGI support lower in the list?
4.) or uncheck the "FastCGI support (required for Ruby on Rails) "?
Basically, i need to enable the PHP-FPM
Thank you.
 
??
The article explains what is PHP-FPM, Apache Module, CGI application, etc. It does not tell the process how to enable PHP-FPM.

As i said in my previous post, I've enabled it using "updates and upgrades" option and "add/remove components". But since you said that is not enough, as the actual settings need to be changed. My question is HOW to change those settings!
 
Hi prateekvarma,

please don't use look at suggestions with one eye only:

To use the PHP-FPM handler for a website:

  1. Go to Subscriptions > <domain_name> > Manage hosting or open the subscription in the Control Panel.
  2. Go to Websites & Domains > <domain_name> > Web Server Settings page and turn on the option Process PHP by nginx.
Note that other PHP handlers are not available for selection if the option Process PHP by nginx is turned on.
Quoted from "PHP Handlers ( online documentation: Administrator's Guide, Plesk 12.0 )"
 
Ah sorry about that, just did that, and it's ON! Thanks man!
Also (don't mind the silly question), i see a checkbox that says "Serve static files directly by nginx" - which is Off right now. So my static files are not being served by Nginx by that time i switch that checkbox on??
 
Hi prateekvarma,

it's really up to you, if you want to switch the option on or off, but it is certainly a good idea to serve static files over nginx, for a better performance and faster content delivery. :D
Please be reminded, that some domain content has possible ".htaccess" directives, which have to be converted into nginx - directives, because nginx ignores ".htaccess" - files. There is as well a wonderfull extension called "htaccess to nginx", which you are able to install for free. This extension will help you to convert ".htaccess" - files into nginx directives. Please read more at:

htaccess to nginx ( Plesk Extensions catalog )

and

Extensions Management at "Home > Extensions" ( at your Plesk - Control - Panel )


Please keep as well in mind, that you don't destroy something, when choosing an option. Test for yourself, which setting is best for you and your domain(s), because each server and it's settings and modifications are unique and each domain - content is unique as well.
 
Last edited by a moderator:
Back
Top