diff --git a/debian/jessie/setup.sh b/debian/jessie/setup.sh
index c640c777ceba2c055883e942a8c6a2b99d86ec17..d5a0103503ff9e027a07ccecb832d30d4a15833b 100644
--- a/debian/jessie/setup.sh
+++ b/debian/jessie/setup.sh
@@ -2,6 +2,24 @@
 
 echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list
 
-apt-get update
-apt-get -y --install-suggests install git dh-make build-essential autoconf autotools-dev libpcre3 libpcre3-dev libz-dev shellcheck
+apt-get -y install \
+    apt-transport-https \
+    lsb-release \
+    ca-certificates \
+    curl
+curl -ssL -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
+sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
 
+apt-get update
+apt-get -y --install-suggests install \
+    git \
+    dh-make \
+    build-essential \
+    autoconf \
+    autotools-dev \
+    libpcre3 \
+    libpcre3-dev \
+    libz-dev \
+    shellcheck \
+    gnupg \
+    libssl-dev