Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx TCP vs Socket for PHP-FPM

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Matt, Jun 26, 2014.

  1. TCP

    3 vote(s)
    75.0%
  2. Socket

    1 vote(s)
    25.0%
  1. Matt

    Matt Well-Known Member

    927
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    3:26 AM
    1.5.15
    MariaDB 10.2
    Just wondering what people choose to use?


    I personally leave it on TCP, but I've set up sites where they have specifically asked for it to connect to PHP-FPM via socket.
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,554
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    12:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    TCP difference isn't much to bother switching to sockets :)
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    10:26 AM
    Mainline
    10.2
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    5:26 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    sockets some times gives errors :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,554
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    12:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup certainly does especially at higher concurrency loads.