docker-php-nginx icon indicating copy to clipboard operation
docker-php-nginx copied to clipboard

Make php packages easier to upgrade

Open sergey-gr opened this issue 1 year ago • 1 comments

As the title says... I made php version change process easier. It requires to change only one variable value to be switched to new php version.

It also set correct php-fpm version in supervisord configuration file.

Hope this changes will be useful.

sergey-gr avatar Feb 07 '24 14:02 sergey-gr

I have similar change in my version and share here to see if it would be more flexible on the ini file and php-fpm location:

ARG PHP_V=82
ENV PHP_RUNTIME=php${PHP_V}
ENV PHP_FPM_RUNTIME=php-fpm${PHP_V}
...
    && if [ ! -L /usr/bin/php ]; then ln -s /usr/bin/${PHP_RUNTIME} /usr/bin/php; fi \
    && if [ -d /etc/${PHP_RUNTIME} ]; then mv /etc/${PHP_RUNTIME} /etc/php && ln -s /etc/php /etc/${PHP_RUNTIME}; fi \
    && if [ ! -L /usr/sbin/php-fpm ]; then ln -s /usr/sbin/${PHP_FPM_RUNTIME} /usr/sbin/php-fpm; fi \

jimsihk avatar Feb 12 '24 17:02 jimsihk