'Where is the php7.4-fpm.sock located if I we use the image php:7.4-fpm?
Hi I pulled the image of php:7.4-fpm
FROM php:7.4-fpm
after the containers is up when I exec the the service and cd on this
root@05a7991437c0:/var/run/php#
but it is empty
I tried to exec the container and service php7.4-fpm status
it says php7.4-fpm: unrecognized service
I want to change my nginx.conf to fpm.sock
fastcgi_pass php:9000;
Thank you in advance
Solution 1:[1]
I needed same for creating virtual host for local nginx.. Below worked for me :
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
Make sure u remove the file your_local_domain from /etc/nginx/sites-enabled before recreating a soft link like below :
sudo ln -s /etc/nginx/sites-available/your_local_domain /etc/nginx/sites-enabled/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jay Teli |
