From bb020c3e6be7fa6910ed33045b5983c7e9f91187 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 5 Dec 2020 11:24:10 +0100 Subject: [PATCH] [ticket/16659] Make sure php-fpm is installed PHPBB3-16659 --- .github/workflows/tests.yml | 2 +- travis/setup-webserver.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5948236511..0c223d0fb3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -113,7 +113,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, pdo_mysqli, intl, gd, exif, iconv + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv coverage: none - name: Setup environment for phpBB diff --git a/travis/setup-webserver.sh b/travis/setup-webserver.sh index 68053c1f7a..ea903ae1fe 100755 --- a/travis/setup-webserver.sh +++ b/travis/setup-webserver.sh @@ -28,6 +28,16 @@ NGINX_PHP_CONF="$DIR/nginx-php.conf" PHP_FPM_BIN="/usr/sbin/php-fpm$PHP_VERSION" PHP_FPM_CONF="$DIR/php-fpm.conf" +if [ ! -f $PHP_FPM_BIN ] +then + sudo apt-get install php$PHP_VERSION-fpm php$PHP_VERSION-cli php$PHP_VERSION-dom \ + php$PHP_VERSION-curl php$PHP_VERSION-xml php$PHP_VERSION-mbstring \ + php$PHP_VERSION-zip php$PHP_VERSION-mysql php$PHP_VERSION-sqlite3 \ + php$PHP_VERSION-intl php$PHP_VERSION-gd php$PHP_VERSION-pgsql + sudo service php$PHP_VERSION-fpm start + sudo service php$PHP_VERSION-fpm status +fi + echo " [global]