Docker Community Forums

Share and learn in the Docker community.

Php-fpm No pool defined error

I’m trying to create a local development environment with nginx and php-fpm.

The problem I’m having is that the during the build the /usr/local/etc/php-fpm.d and /usr/local/etc/php/conf.d directories and files aren’t being created. They were being created at one time and now they aren’t.

The only thing I’ve changed is to the nginx conf file that’s being copied during the nginx build.

server {
    listen 80;
    listen [::]:80;

    server_name site_domain www.site_domain;
    return 301 $scheme://site_domain$request_uri;

server {
    listen 443;
    listen [::]:443;

    server_name site_domain www.site_domain;
    root /var/www/html;
    index index.php index.html;

    ssl_certificate /etc/ssl/site_domain.crt;
    ssl_certificate_key /etc/ssl/site_domain.key;

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/socket/php-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       fastcgi_param PATH_INFO $fastcgi_path_info;

I even tried starlight up tired copying the files needed during the build, but when the build is complete the files still aren’t there.

COPY /docker/templates/php/conf.d/docker-php-ext-sodium.ini /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
COPY /docker/templates/php/php.ini-development /usr/local/etc/php/php.ini-development
COPY /docker/templates/php/php.ini-production /usr/local/etc/php/php.ini-production
COPY /docker/templates/php-fpm.d/docker.conf /usr/local/etc/php-fpm.d/docker.conf
COPY /docker/templates/php-fpm.d/www.conf /usr/local/etc/php-fpm.d/www.conf
COPY /docker/templates/php-fpm.d/www.conf.default /usr/local/etc/php-fpm.d/www.conf.default
COPY /docker/templates/php-fpm.d/zz-docker.conf /usr/local/etc/php-fpm.d/zz-docker.conf
COPY /docker/templates/php-fpm.d/zzzzzz-me.conf /usr/local/etc/php-fpm.d/zzzzzz-me.conf

I just don’t get why this all of a sudden stopped working like before.

Sorry for the long post.