matriphe / docker-alpine-php

PHP FPM and PHP CLI docker image based on Alpine Linux
45 stars 29 forks source link

Fixed issue 'connection refused' #4

Closed macmladen closed 8 years ago

macmladen commented 8 years ago

In PHP 7 listen moved from /etc/php5/php-fpm.conf to php pools which are in conf files located in /etc/php7/php-fpm.d/.

Because directive listen is now in /etc/php7/php-fpm.d/www.conf sed command need to have changed target to it:

    # Set environments
    sed -i "s|;*daemonize\s*=\s*yes|daemonize = no|g" /etc/php7/php-fpm.conf && \
    sed -i "s|;*listen\s*=\s*127.0.0.1:9000|listen = 9000|g" /etc/php7/php-fpm.d/www.conf && \
    sed -i "s|;*listen\s*=\s*/||g" /etc/php7/php-fpm.d/www.conf && \
    sed -i "s|;*date.timezone =.*|date.timezone = ${TIMEZONE}|i" /etc/php7/php.ini && \
    ...
matriphe commented 8 years ago

Whoa! Thanks for the PR!

macmladen commented 8 years ago

Thank you for this small Docker image that helped me a lot to understand Docker and how it works. By solving this problem I could connect my experience with servers with docker containers and this made a huge impact on how I will develop.

matriphe commented 8 years ago

yes. me too. i built this image to understand more into Docker.

glad it can help you. 👍