2

I'm in a docker container with debian. I have installed nginx and also installed php-fpm through apt update && apt install php-fpm.

I can confirm php was installed fine and working properly:

root@1b6b551h5420:/run# service --status-all
 [ - ]  dbus
 [ ? ]  hwclock.sh
 [ + ]  nginx
 [ + ]  nginx-debug
 [ - ]  php7.3-fpm
 [ - ]  pro cps
root@1b6b551h5420:/run# 

However, I cannot find /run/php/php7.3-fpm.sock; I have checked by cat /etc/php/7.3/fpm/pool.d/www.conf and I can see the line:

listen = /run/php/php7.3-fpm.sock

But, in my container, when I go to /run/, the folder php does not even exist:

root@1b6b551h5420:/run# ls
lock  nginx.pid  utmp
root@1b6b551h5420:/run# 

Am I missing some steps? any suggestions?

Kid_Learning_C
  • 2,605
  • 4
  • 39
  • 71

1 Answers1

1

Did you start php-fpm?

In the same way you need to do service nginx start , you also have to do service php7.3-fpm start.

The socket will be created when you start it.

Rafa
  • 1,397
  • 15
  • 21