diff --git a/root/etc/cont-init.d/50-php b/root/etc/cont-init.d/50-php new file mode 100644 index 0000000..bbbf57d --- /dev/null +++ b/root/etc/cont-init.d/50-php @@ -0,0 +1,11 @@ +#!/usr/bin/with-contenv sh + +# Make sure to have a defined set of PHP binaries, +# regardless of how the package maintainer(s) named those. +if [ ! -f /usr/bin/php ]; then + ln -s /usr/bin/php5 /usr/bin/php +fi + +if [ ! -f /usr/bin/php-fpm ]; then + ln -s /usr/bin/php-fpm5 /usr/bin/php-fpm +fi