Learn about Centmin Mod LEMP Stack today
Register Now

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 Moderator Staff Member

    715
    330
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +468
    Local Time:
    11:15 AM
    1.7.1
    MariaDB 10
    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

    31,532
    7,014
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,604
    Local Time:
    9:15 PM
    Nginx 1.13.x
    MariaDB 5.5
    TCP difference isn't much to bother switching to sockets :)
     
    • Like Like x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    4,011
    969
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,337
    Local Time:
    7:15 PM
    1.11
    10.2
  4. pamamolf

    pamamolf Well-Known Member

    2,892
    260
    83
    May 31, 2014
    Ratings:
    +463
    Local Time:
    1:15 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    sockets some times gives errors :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    31,532
    7,014
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,604
    Local Time:
    9:15 PM
    Nginx 1.13.x
    MariaDB 5.5
    yup certainly does especially at higher concurrency loads.