I've been seeing many tuto's in forum on nginx with virtualmin, I'm happy because I made a lot of changes on where to change to improve performance, after following the official documentation of virturalmin all worked out in my Ubnutu server 16:04 64bit, so I can see in my file phpinfo (); my server is working with fpm / fast-cgi
this after I make changes individually on each virtualserver my server:
editing nano /etc/nginx/sites-available/1dominiox.com
... fastcgi_pass unix: /var/php-nginx/148756blablabla946.sock/socket; ...
Output in phpinfo ();
Server API CGI / FastCGI
But if I do as I've seen in some forums: ... fastcgi_pass unix: /run/php/php7.0-fpm.sock; ...
Output in phpinfo ();
Server API FPM / FastCGI
which definition I do? which is better, better performance, greater compatibility? more stable? I see people passionate about the idea of using the FPM is the cgi manager who speak very simply, I would like further clarification.
Thank you and Best Regards.
Comments
Submitted by herculesnetwork on Thu, 09/15/2016 - 03:18 Comment #1
Submitted by JamieCameron on Thu, 09/15/2016 - 22:17 Comment #2
The first path is better, because it means that you'll be using the PHP server that runs as the domain owner.