Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
php-fpm sockets vs ports
-
- Posts: 3
- Joined: Sun Sep 04, 2016 7:11 pm
php-fpm sockets vs ports
I noticed that vestacp uses php-fpm and configures for every user account a different port starting with port 9000. You can find the configuration files in /etc/php-fpm.d/
I would think that communication via unix sockets will be faster then via local ports. Are there other people who know more about this and could advise on this choice. And is it (easily) possible to change the way vestacp generates the php-fpm config files.
I hope this can contribute in improving the vestacp.
I would think that communication via unix sockets will be faster then via local ports. Are there other people who know more about this and could advise on this choice. And is it (easily) possible to change the way vestacp generates the php-fpm config files.
I hope this can contribute in improving the vestacp.
Re: php-fpm sockets vs ports
Having sockets instead of ports would be better, you won't have to go through the network stack to process.