[php-src] Issue #9736: Unable to bind listening socket for address '/run/php-fpm/php-fpm.sock'

From: Date: Wed, 12 Oct 2022 13:15:03 +0000
Subject: [php-src] Issue #9736: Unable to bind listening socket for address '/run/php-fpm/php-fpm.sock'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242585@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9736 Author: nibazshab ### Description I do ./configure --enable-fpm and make,make install to install php, and my www.conf is this ```ini [www] user = http group = http listen = /run/php-fpm/php-fpm.sock listen.owner = http listen.group = http pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 ``` when i do /usr/local/sbin/php-fpm, i got these ```ini [12-Oct-2022 20:56:13] ERROR: unable to bind listening socket for address '/run/php-fpm/php-fpm.sock': No such file or directory (2) [12-Oct-2022 20:56:13] ERROR: FPM initialization failed ``` i have to create /run/php-fpm and give it right permission with my hand, then php-fpm can work correctly, and when i reboot my computer, I have to do it again i used to start with systemd but i also got above ERROR ```ini [Unit] Description=The PHP FastCGI Process Manager After=network.target [Service] Type=notify PIDFile=/run/php-fpm/php-fpm.pid ExecStart=/usr/local/sbin/php-fpm --nodaemonize --fpm-config /usr/local/etc/php-fpm.conf ExecReload=/bin/kill -USR2 $MAINPID PrivateTmp=true PrivateDevices=true ProtectKernelModules=true ProtectKernelTunables=true ProtectControlGroups=true RestrictRealtime=true RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX RestrictNamespaces=true [Install] WantedBy=multi-user.target ``` ### PHP Version 8.1.11 ### Operating System Arch LInux

« previous php.bugs (#242585) next »