phpdocker-io / base-images Goto Github PK
View Code? Open in Web Editor NEWBase docker images for PHPDocker.io
Home Page: http://phpdocker.io
License: Apache License 2.0
Base docker images for PHPDocker.io
Home Page: http://phpdocker.io
License: Apache License 2.0
There is no way to easily run scripts when the container starts, without hard-coding the path to the the php-fpm
binary
Could we please have an entrypoint folder to run startup commands easily, without overriding the CMD
in our docker files.
They currently allow it for Nginx Docker containers:
https://github.com/nginxinc/docker-nginx/blob/master/entrypoint/docker-entrypoint.sh
Is it possible to change the default fpm logging mechanism in order for the build containers to log the output of laravel.log file?
Basically, what I'm asking is if it is possbile to have the output of laravel.log by running "docker logs lararvel-app" command.
I encountered an error, he seems to be unable to connect to mysql.
root@debian:~# docker run -it phpdockerio/php74-cli php -r "new PDO('mysql:host=mysql;dbname=mysql', '','');"
PHP Fatal error: Uncaught PDOException: could not find driver in Command line code:1
Stack trace:
#0 Command line code(1): PDO->__construct()
#1 {main}
thrown in Command line code on line 1
Hi.
I am trying to build a container with php7.1-mbstring
but it's not really working.
FROM phpdockerio/php71-fpm:latest
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install php7.1-mbstring php7.1-pgsql \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
WORKDIR "/application"
This build the container and seems to be getting the files needed.
The following NEW packages will be installed:
libpq5 php7.1-mbstring php7.1-pgsql
Creating config file /etc/php/7.1/mods-available/mbstring.ini with new version
Setting up php7.1-pgsql (7.1.5-1+deb.sury.org~xenial+2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
But when I try to run composer update with a dependency for mbstring I get the following error.
- maknz/slack 1.7.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
When expecting enabled extensions I cant see mbstring in my php -m
liste and there is no ini file in /etc/php/7.1/mods-available/mbstring.ini
.
I'm running my project on a PHP-FPM docker container based on phpdockerio/php:8.1-fpm
(details of config files below). When I build my containers and attempt to run composer I'm getting errors reporting missing PHP extensions. However, I thought my build files where covering these extensions (see php-fpm/Dockerfile below).
It turns out that the container is being built with php8.2 as the default version. I have been able to change the symlinks to set the default version back to php8.1 but this doesn't seem like the right solution. Is this an issue with the image?
How I know the container is running 8.2:
Inside the container I ran php --version
and got:
root@fee8cc9ff790:/application# php --version
PHP 8.2.0 (cli) (built: Dec 8 2022 13:56:08) (NTS)
Then which php
gave me:
root@fee8cc9ff790:/application# which php
/usr/bin/php
I followed the symlinks to find that linked PHP binaries in /etc/alternatives
are:
phar -> /usr/bin/phar8.2
phar.phar -> /usr/bin/phar.phar8.2
php -> /usr/bin/php8.2
phpdbg -> /usr/bin/phpdbg8.2
This is the bit that doesn't seem right to me. I was able to relink these to their 8.1 versions and things seem to be running fine now but what happens when I rebuild the container?
Details of my files:
docker-compose.yml
###############################################################################
# Generated on docker.io #
###############################################################################
version: '3.9'
services:
mailhog:
image: 'mailhog/mailhog:latest'
redis:
image: 'redis:alpine'
mysql:
image: 'mysql:8.0.27'
working_dir: /application
platform: linux/amd64
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_DATABASE=
- MYSQL_USER=
- MYSQL_PASSWORD=
webserver:
image: 'nginx:alpine'
working_dir: /application
volumes:
- '.:/application'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
php-fpm:
build: docker/php-fpm
working_dir: /application/
volumes:
- '.:/application'
- './docker/php-fpm/php-ini-overrides.ini:/etc/php/8.1/fpm/conf.d/99-overrides.ini'
- './docker/php-fpm/php-ini-overrides.ini:/etc/php/8.1/cli/conf.d/99-overrides.ini'
docker-compose.override.yml
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: '3.9'
services:
mailhog:
ports:
- '8026:8025'
mysql:
ports:
- '33061:3306'
webserver:
ports:
- '801:80'
docker/php-fpm/Dockerfile
FROM phpdockerio/php:8.1-fpm
WORKDIR "/application"
RUN apt-get update; \
apt-get -y --no-install-recommends install \
git \
php-xdebug \
php8.1-mysql \
php8.1-sqlite \
mysql-client \
php8.1-redis; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
Is it possible to request a base image be built?
Reason: I have a very old website that we all used to use made with PHPNuke and it uses 4.3.8.
I'm having the worst time trying to get an image with that version in it, or to make one myself (I have very little linux experience, and have also never created a dockerfile myself). I was hoping the wizards here would be able to whip one up easily that I could then do the rest myself (i.e. add nginx to serve the site, and connect to a mariadb).
Thanks!
Kacey
Hi,
I try to use your PHP image and install any PHP extetion (mysql for example)
So error appeares
Errors were encountered while processing:
php7.1-fpm
My Dockerfile is
FROM phpdockerio/php71-fpm:latest
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install php7.1-mysql \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
WORKDIR "/application"
Docker command is
docker build --no-cache -t project/image-name .
My full output
>>> >>> >>> >>> >>> >>> >>> >>> Docker: Rebuild all image
Sending build context to Docker daemon 102.9 kB
Step 1/3 : FROM phpdockerio/php71-fpm:latest
---> 4610b7ae3714
Step 2/3 : RUN apt-get update && apt-get -y --no-install-recommends install php7.1-mysql && apt-get clean; rm -rf /var/lib/apt/lists/* /tm
p/* /var/tmp/* /usr/share/doc/*
---> Running in 3f8583f72459
Get:1 http://ppa.launchpad.net/ondrej/php-qa/ubuntu xenial InRelease [23.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23.9 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://ppa.launchpad.net/ondrej/php-qa/ubuntu xenial/main amd64 Packages [2279 B]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages [55.9 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [39.9 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [370 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.8 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [173 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2937 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [203 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [728 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.2 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [620 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [9808 B]
Get:24 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4929 B]
Get:25 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [6241 B]
Fetched 24.2 MB in 24s (1007 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
php7.1-cli php7.1-common php7.1-curl php7.1-fpm php7.1-json php7.1-opcache
php7.1-readline php7.1-xml php7.1-zip
Suggested packages:
php-pear
The following NEW packages will be installed:
php7.1-mysql
The following packages will be upgraded:
php7.1-cli php7.1-common php7.1-curl php7.1-fpm php7.1-json php7.1-opcache
php7.1-readline php7.1-xml php7.1-zip
9 upgraded, 1 newly installed, 0 to remove and 30 not upgraded.
Need to get 3990 kB of archives.
After this operation, 475 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-readline amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [12.8 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-opcache amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [142 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-json amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [17.2 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-zip amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [19.7 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-curl amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [28.3 kB]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-xml amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [113 kB]
Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-fpm amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [1333 kB]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-cli amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [1327 kB]
Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-common amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [877 kB]
Get:10 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-mysql amd64 7.1.6-1~ubuntu16.04.1+deb.sury.org+1 [120 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 3990 kB in 10s (368 kB/s)
(Reading database ... 7627 files and directories currently installed.)
Preparing to unpack .../php7.1-readline_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-readline (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-opcache_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-opcache (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-json_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-json (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-zip_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-zip (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-curl_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-curl (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-xml_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-xml (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-fpm_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-fpm (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-cli_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-cli (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Preparing to unpack .../php7.1-common_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-common (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) over (7.1.4-1+deb.sury.org~xenial+1) ...
Selecting previously unselected package php7.1-mysql.
Preparing to unpack .../php7.1-mysql_7.1.6-1~ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-mysql (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
Processing triggers for systemd (229-4ubuntu16) ...
Setting up php7.1-common (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up php7.1-readline (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up php7.1-opcache (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up php7.1-json (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up php7.1-zip (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up php7.1-curl (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up php7.1-xml (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up php7.1-cli (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Replacing config file /etc/php/7.1/cli/php.ini with new version
Setting up php7.1-fpm (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
Installing new version of config file /etc/apache2/conf-available/php7.1-fpm.conf ...
Installing new version of config file /etc/init.d/php7.1-fpm ...
Configuration file '/etc/php/7.1/fpm/pool.d/www.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** www.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package php7.1-fpm (--configure):
end of file on stdin at conffile prompt
Setting up php7.1-mysql (7.1.6-1~ubuntu16.04.1+deb.sury.org+1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Creating config file /etc/php/7.1/mods-available/mysqlnd.ini with new version
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Creating config file /etc/php/7.1/mods-available/mysqli.ini with new version
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm l
ine 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64
-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/
share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Creating config file /etc/php/7.1/mods-available/pdo_mysql.ini with new version
Processing triggers for systemd (229-4ubuntu16) ...
Errors were encountered while processing:
php7.1-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c apt-get -y --no-install-recommends install ...
returned a non-zero code: 100
Well, what am I doing wrong?
Thanks and best regards, Smet Denis
nothing
nginx-redis | 1:M 14 Apr 16:38:11.884 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
nginx-redis | 1:M 14 Apr 16:38:11.884 # Server started, Redis version 3.0.5
nginx-redis | 1:M 14 Apr 16:38:11.884 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
nginx-redis | 1:M 14 Apr 16:38:11.884 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
The phpdocker.io site allows you to add modules that aren't available on dot deb.
apt-get -y --no-install-recommends install php7.0-memcached php7.0-mysql php7.0-redis php7.0-bz2 php7.0-gd php7.0-imagick php7.0-mbstring php7.0-xdebug
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php7.0-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package php7.0-memcached
E: Couldn't find any package by regex 'php7.0-memcached'
E: Unable to locate package php7.0-mysql
E: Couldn't find any package by regex 'php7.0-mysql'
E: Unable to locate package php7.0-redis
E: Couldn't find any package by regex 'php7.0-redis'
E: Unable to locate package php7.0-bz2
E: Couldn't find any package by regex 'php7.0-bz2'
E: Package 'php7.0-gd' has no installation candidate
E: Unable to locate package php7.0-imagick
E: Couldn't find any package by regex 'php7.0-imagick'
E: Unable to locate package php7.0-mbstring
E: Couldn't find any package by regex 'php7.0-mbstring'
E: Unable to locate package php7.0-xdebug
E: Couldn't find any package by regex 'php7.0-xdebug'
Partial drive damaged
![image](https://user-images.githubusercontent.com/29333213/76186196-86dd4880-620c-11ea-926a-2268eba81601.png
pdo-mysql.........
I use your dockerfile which was made from phpdockerio/php71-fpm:latest image. It doesn't have any locale configuration and by default locale is POSIX. Without proper locale many multibyte php functions such basename work not properly. I don't know if it is an issue, but setting default locale to UTF-8 helped me a lot.
You could add lines this to your docker file to set it.
RUN apt-get update
&& apt-get -y --no-install-recommends install locales php7.1-mysql php7.1-intl php7.1-mbstring php7.1-sqlite3
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
I saw a similar closed issue (php -v = php8.1 when i specify 7.4 in my dockerfile) but did not found my solution, so here I am, here is my dockerfile :
FROM phpdockerio/php:7.4-fpm
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update --fix-missing && apt-get install -y --no-install-recommends apt-utils
RUN apt-get install --reinstall --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" php7.4-fpm php7.4-cli
RUN apt-get update --fix-missing
RUN apt-get -y install php7.4-gd php7.4-mysql php7.4-mbstring php7.4-sqlite3 php7.4-intl php-memcached wget gdebi optipng jpegoptim zlib1g-dev php7.4-xdebug
# libpng12-0
RUN wget http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_amd64.deb
RUN gdebi --non-interactive libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_amd64.deb
# multiarch-support
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.5_amd64.deb
RUN gdebi --non-interactive multiarch-support_2.27-3ubuntu1.5_amd64.deb
# libssl1.0.0 - requires multiarch-support
RUN wget https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
RUN gdebi --non-interactive libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
# wkhtmltopdf - requires libpng12-0 libssl1.0.0 zlib(zlib1g-dev)
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.xenial_amd64.deb
RUN gdebi --non-interactive wkhtmltox_0.12.6-1.xenial_amd64.deb
RUN apt-get -y install git nano
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
RUN composer self-update --1
ADD files /
RUN cat /etc/php/7.4/php.ini.add >> /etc/php/7.4/php.ini
RUN cat /etc/php/7.4/php.ini.add >> /etc/php/7.4/fpm/php.ini
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN useradd --create-home --shell /bin/bash --user-group dev
RUN echo "export TERM=xterm" >> /home/dev/.bashrc
ENV DEBIAN_FRONTEND teletype
I have a feeling this issue is related with php8.1-common, i see it when I build but I dont know where it comes from...
Hi folks,
I have tried using
FROM phpdockerio/php72-fpm:latest
WORKDIR "/application"
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install php7.2-mysql \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
With a compose
php:
build:
context: docker/php7
volumes:
- ./shopify:/var/www/html
- ./docker/php.ini:/etc/php/7.2/fpm/conf.d/php.ini
user: $UID
working_dir: /var/www/html
depends_on:
- mysql
And it is not able to write working files. The workaround is obvious but I think the base image should account for permissions on the PID file
php_1 | [21-Mar-2018 03:45:14] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
php_1 | [21-Mar-2018 03:45:14] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
php_1 | [21-Mar-2018 03:45:14] ERROR: Unable to create the PID file (/run/php-fpm.pid).: Permission denied (13)
php_1 | [21-Mar-2018 03:45:14] ERROR: FPM initialization failed
After building today from phpdockerio/php72-fpm:latest, my MySQL drivers stopped working when deploying on my stack. Everything seems to work locally in my Mac, though.
I'm new to Docker, so not sure if I've missed something. Any help appreciated.
Trying to install PECL but no luck, any advice?
FROM phpdockerio/php73-fpm:latest
WORKDIR "/var/www"
RUN apt-get install php-pear
> E: Package 'php-pear' has no installation candidate
I am running a slightly modified version of the generated files from phpdocker.io and php-fpm won't start on docker-compose up
There are no logs being generated, as it just looks like php-fpm doesn't start.
docker-compose.yml:
version: "3.1"
services:
postgres:
image: postgres:11.1-alpine
container_name: sgn-postgres
working_dir: /application
volumes:
- .:/application
- ./docker/postgres/:/docker-entrypoint-initdb.d/
environment:
- POSTGRES_USER=sgn
- POSTGRES_PASSWORD=sgn
- POSTGRES_DB=sgn
ports:
- "5432:5432"
restart: always
webserver:
image: nginx:alpine
container_name: sgn-webserver
working_dir: /application
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
restart: always
php-fpm:
build: docker/php-fpm
container_name: sgn-php-fpm
working_dir: /application
volumes:
- .:/application
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini
restart: always
Dockerfile inside /php-fpm/:
FROM phpdockerio/php74-fpm:latest
WORKDIR "/application"
# Fix debconf warnings upon build
ARG DEBIAN_FRONTEND=noninteractive
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install nano php7.4-pgsql php-xdebug apt-utils libfontconfig1 libxrender1 xvfb libjpeg-turbo8 libpng16-16 \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Install git
RUN apt-get update \
&& apt-get -y install git \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Install cron
RUN apt-get update \
&& apt-get install -y cron
ADD ./crontab /etc/cron.d/cron
RUN chmod 0644 /etc/cron.d/cron \
&& touch /var/log/cron.log \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Run the command on container startup
CMD printenv > /etc/environment && echo "cron starting..." && (cron) && : > /var/log/cron.log && tail -f /var/log/cron.log
nginx.conf inside /nginx/:
server {
listen 80 default;
client_max_body_size 108M;
access_log /var/log/nginx/application.access.log;
root /application/public;
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
}
Keep track of oerdnj/deb.sury.org#1682 and undo #45 whenever possible.
Currently there's only a 'latest' tag on hub.docker.com. Would it be possible to tag actual versions for php as well?
I get a "111: Connection refused" when using a phpdockerio/php71-fpm container and try to access from a nginx container. But it gets fixed if I restart the php7.1-fpm service.
Debian have moved the jessie pacakages to archive.debian.org
so the sources.list needs updating to prevent the following build error:
FROM phpdockerio/php56-fpm:latest
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found
Fetched 10.1 MB in 8s (1250 kB/s)
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c apt-get update && apt-get -y --no-install-recommends install php5-mysql wget php5-xdebug php5-gd php5-intl' returned a
non-zero code: 100
Removal of Wheezy and Jessie (except LTS) from mirrors
Hello,
as Wheezy and Jessie have been integrated into the archive.debian.org
structure recently, we are now removing all of Wheezy and all non-LTS
architectures of Jessie from the mirror network starting today.
That is, only Jessie i386, amd64, armel and armhf will continue to be
hosted on the normal mirrors.The data is, of course, not lost - the whole of it is synced
to archive.debian.org, so if you still need it you will be able to get
it from there.[1][1] Keep in mind that they have no security support at all!
bye, Joerg
In the Redis dockerfile, it lists:
EXPOSE 11211
That's the port for BeanstalkD. Redis uses 6379 by default.
I can not build the docker image (FROM phpdockerio/php72-fpm) correctly because I have the following errors:
Err:9 http://security.ubuntu.com/ubuntu bionic-security InRelease
400 Bad Request [IP: 91.189.91.26 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 400 Bad Request
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
Somehow there are no 7.3 images up on docker hub: https://hub.docker.com/r/phpdockerio/php/tags?page=1&name=7.3
I would like to be able to use FROM phpdockerio/php:7.3-fpm
in my Dockerfile
๐
First of all, very nice project and thank you for your time doing this.
I've encountered an issue or may be I'm not doing something correctly.
After configured Phalcon 3
+ PHP 7.3
+ MongoDB
, and then starting it up with docker-compose up
I'm not able to get Phalcon to work. Everything with the install goes well and at the end when the services are startring I get this: PHP Warning: Cannot load module 'phalcon' because required module 'psr' is not loaded in Unknown on line 0
.
Am I doing something wrong? Here is the log:
Creating test-webserver ... done
Attaching to test-php-fpm, test-webserver
test-php-fpm | [30-Dec-2019 16:46:01] NOTICE: PHP message: PHP Warning: Cannot load module 'phalcon' because required module 'psr' is not loaded in Unknown on line 0
test-php-fpm | [30-Dec-2019 16:46:01] NOTICE: fpm is running, pid 1
test-php-fpm | [30-Dec-2019 16:46:01] NOTICE: ready to handle connections
test-php-fpm | [30-Dec-2019 16:46:01] NOTICE: systemd monitor interval set to 10000ms```
Launched container:
docker run -d --restart always phpdockerio/php72-fpm -p 9090:9000
Here's nginx config (nginx installed on the local machine without docker containers):
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass localhost:9090;
fastcgi_index index.php;
include fastcgi.conf;
}
But nginx throws 404 not found errors in a log. What i am doing wrong?
Hello
I am trying to install a pecl package inside my container with phpdockerio/php:8.2-fpm
However, when trying to do this I get the following error
Could not download from "https://pecl.php.net/get/runkit7-4.0.0a6.tgz", cannot download "pecl/runkit7" (Connection to
ssl://pecl.php.net:443' failed: )I tried to install the pecl/runkit7 manually by downloading it with curl and running a
pecl install --offline runkit7` but it seems to cause a Segmentation Fault error.
I tried with previous versions of the image (php:8.0, 7.4, 7.3) and I get the same result, happen to know why this might be happening?
I have created the Dockerfile
FROM phpdockerio/php71-fpm:latest
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install wget git curl php7.1-memcached php7.1-bz2 php7.1-pgsql php7.1-redis php7.1-gd php7.1-imagick php7.1-imap php7.1-intl php7.1-mbstring php7.1-xdebug\
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Install composer
RUN bash -c "wget http://getcomposer.org/composer.phar && mv composer.phar /usr/local/bin/composer"
RUN chmod +x /usr/local/bin/composer
WORKDIR "/var/www/house-control"
EXPOSE 9000
USER 1000
But when I try to run composer install
in container, there is no output there. Composer does not work.
Hi,
starting from today november 19th, php74-fpm image throw an error in preg_match_all() function.
Step to reproduce:
docker run --name fpmtest phpdockerio/php74-fpm
docker exec -it fpmtest bash
apt-get update && apt-get -y --no-install-recommends install php7.4-mysql
composer -V
the output error is:
PHP Fatal error: Uncaught ErrorException: preg_match_all(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in phar:///usr/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php:137
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle()
#1 phar:///usr/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php(137): preg_match_all()
#2 phar:///usr/bin/composer/vendor/symfony/console/Output/Output.php(155): Symfony\Component\Console\Formatter\OutputFormatter->format()
#3 phar:///usr/bin/composer/vendor/symfony/console/Output/Output.php(132): Symfony\Component\Console\Output\Output->write()
#4 phar:///usr/bin/composer/vendor/symfony/console/Application.php(641): Symfony\Component\Console\Output\Output->writeln()
#5 phar:///usr/bin/composer/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException()
#6 phar:///usr/bin/composer/src/Composer/Console/Application.php(128): Symfony\Component\Console\Application->run()
#7 phar:///usr/ in phar:///usr/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php on line 137
Fatal error: Uncaught ErrorException: preg_match_all(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in phar:///usr/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php:137
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle()
#1 phar:///usr/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php(137): preg_match_all()
#2 phar:///usr/bin/composer/vendor/symfony/console/Output/Output.php(155): Symfony\Component\Console\Formatter\OutputFormatter->format()
#3 phar:///usr/bin/composer/vendor/symfony/console/Output/Output.php(132): Symfony\Component\Console\Output\Output->write()
#4 phar:///usr/bin/composer/vendor/symfony/console/Application.php(641): Symfony\Component\Console\Output\Output->writeln()
#5 phar:///usr/bin/composer/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException()
#6 phar:///usr/bin/composer/src/Composer/Console/Application.php(128): Symfony\Component\Console\Application->run()
#7 phar:///usr/ in phar:///usr/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php on line 137
I installed gd in the php74-fpm docker
When I do: php -m
it shows as being installed. I created a test file test.php and when I run it from the shell using php ./test.php it shows gd as being installed, but when I do the same test in the file that I am serving the fpm using Nginx the test shows that gd is not installed...
if (!function_exists('imagecreatetruecolor')) echo "it isn't here/n";
if (function_exists('imagecreatetruecolor')) echo "Here it is!/n";
Why is that? What do I need to do to get gd to be installed when going through fpm?
Issue doing a pull.
Thoughts?
docker pull phpdockerio/nginx
Using default tag: latest
Warning: failed to get default registry endpoint from daemon (An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.23/info: open //./pipe/docker_engine: The system cannot find the file specified.). Using system default: https://index.docker.io/v1/
An error occurred trying to connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.23/images/create?fromImage=phpdockerio%2Fnginx%3Alatest: open //./pipe/docker_engine: The system cannot find the file specified.
When i add ENTRYPOINT - container stop working exited with code 1
my Dockerfile
FROM phpdockerio/php74-fpm:latest
COPY startup_scripts.sh /mea_startup_scripts.sh
RUN chmod +x /startup_scripts.sh
ENTRYPOINT ["/startup_scripts.sh"]
startup_scripts.sh
#!/bin/bash
set -e
echo "test"
exec "$@"
why when i add entrypoint container stop working ?
Commit c2ce212 removed git
from the apt-get installation
I am not sure this was intended? However this breaks my images as those depend on git
.
The switch to ubuntu:bionic
on php7.2-cli
is causing some issues with missing packages from the ppa:
Command:
apt-get -y --no-install-recommends install php7.2-memcached php7.2-pgsql php7.2-redis php7.2-xdebug php7.2-mbstring php7.2-mcrypt php7.2-gmp libgmp10
Result
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.2-memcached
E: Couldn't find any package by glob 'php7.2-memcached'
E: Couldn't find any package by regex 'php7.2-memcached'
E: Unable to locate package php7.2-pgsql
E: Couldn't find any package by glob 'php7.2-pgsql'
E: Couldn't find any package by regex 'php7.2-pgsql'
E: Unable to locate package php7.2-redis
E: Couldn't find any package by glob 'php7.2-redis'
E: Couldn't find any package by regex 'php7.2-redis'
E: Unable to locate package php7.2-xdebug
E: Couldn't find any package by glob 'php7.2-xdebug'
E: Couldn't find any package by regex 'php7.2-xdebug'
E: Unable to locate package php7.2-mcrypt
E: Couldn't find any package by glob 'php7.2-mcrypt'
E: Couldn't find any package by regex 'php7.2-mcrypt'
E: Unable to locate package php7.2-gmp
E: Couldn't find any package by glob 'php7.2-gmp'
E: Couldn't find any package by regex 'php7.2-gmp'
Can't connect to my postgres DB now ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.