From 4dba50d3af3e16e37134983449e080a97c9a818f Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 27 Nov 2019 21:56:29 +0530 Subject: [PATCH 1/2] Fix php-fpm on linux in PHP 5.6 and 7.0 --- src/scripts/linux.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 39d52e85..c775a32b 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -20,6 +20,8 @@ existing_version=$(php-config --version | cut -c 1-3) version=$1 status="Switched to PHP$version" step_log "Setup PHP and Composer" +sudo mkdir -p /var/run +sudo mkdir -p /run/php find /etc/apt/sources.list.d -type f -name 'ondrej-ubuntu-php*.list' -exec sudo DEBIAN_FRONTEND=noninteractive apt-fast update -o Dir::Etc::sourcelist="{}" ';' >/dev/null 2>&1 if [ "$existing_version" != "$1" ]; then if [ ! -e "/usr/bin/php$1" ]; then @@ -41,7 +43,6 @@ fi ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g") ext_dir=$(php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||") sudo chmod 777 "$ini_file" -sudo mkdir -p /run/php add_log "$tick" "PHP" "$status" if [ "$2" = "true" ]; then if [ "$1" != "7.4" ]; then From 929f9cd52dc9d5be07802a387b6374d2824d8760 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 27 Nov 2019 22:23:42 +0530 Subject: [PATCH 2/2] Add flag to skip checksum if it fails --- src/scripts/win32.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 1d3a2155..d8a621a5 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -53,6 +53,7 @@ catch { try { Update-PhpCAInfo -Path $php_dir -Source Curl } catch { + Update-PhpCAInfo -Path $php_dir -Source Curl -SkipChecksumCheck } } if ([Version]$installed.Version -ge '7.4') {