PHP-FPM socket directory

Discussion in 'Installation/Configuration' started by concept21, Feb 12, 2025.

  1. concept21

    concept21 Active Member

    Dear Developers and Experts,
    My VPS is running ISPConfig v3.2.12p1 on Ubuntu 24.04, Nginx.

    Now, I want to create new php-fpm instant. How do I fill in its PHP-FPM socket directory as shown?
    phpfpm scoket dir.png

    I find that there is problem about PHP-fpm socket in my installation. It affects my squirrelmail and phpmyadmin web access whenever I reconfigure my site from within ISPConfig 3 GUI.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It should be empty.
     
  3. remkoh

    remkoh Active Member HowtoForge Supporter

    o_O

    Have had settings like this for years and never had any issues (always running Ubuntu and some CentOS in the past)
    upload_2025-2-12_21-5-27.png
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Of course, you can set something there. If you do not set a value, it will be the default folder in the system. I meant that you do not have to set something specific to the PHP version there; the easiest way is to empty it.
     
  5. concept21

    concept21 Active Member

    Yes, I also find other places like:
    /var/lib/php8.3-fpm/
    which contains file web1.sock
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    If this is a recent system, then /var/lib/php8.3-fpm/ is likely the default directory. Please note that numbers in PHP-FPM socket directory names like the 8.3 here do not have anything to do with the PHP version of that site. So this is no indication that this site uses PHP 8.3, it can be any installed PHP version, so e.g. when the site sues PHP 8.3, the socket will also be in /var/lib/php8.3-fpm/ and if it uses 5.6, it will also be in the folder /var/lib/php8.3-fpm/
     

Share This Page