Welcome to Centmin Mod Community
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 Moderator Staff Member

    819
    360
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +549
    Local Time:
    11:46 PM
    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

    40,626
    9,017
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,884
    Local Time:
    8:46 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    TCP difference isn't much to bother switching to sockets :)
     
    • Like Like x 1
  3. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    6:46 AM
    Mainline
    10.2
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. pamamolf

    pamamolf Premium Member Premium Member

    3,347
    318
    83
    May 31, 2014
    Ratings:
    +593
    Local Time:
    1:46 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    sockets some times gives errors :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    40,626
    9,017
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,884
    Local Time:
    8:46 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup certainly does especially at higher concurrency loads.