mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
v-update-php-version: upgrade PHP to 8.4.10 and update download link; add additional dependencies for Debian 13
This commit is contained in:
parent
7799cd3322
commit
b3758430c6
1 changed files with 7 additions and 8 deletions
|
@ -62,7 +62,7 @@ NGINX_V='1.29.0'
|
||||||
OPENSSL_V='1.1.1w'
|
OPENSSL_V='1.1.1w'
|
||||||
PCRE_V='8.45'
|
PCRE_V='8.45'
|
||||||
ZLIB_V='1.3.1'
|
ZLIB_V='1.3.1'
|
||||||
PHP_V='5.6.40'
|
PHP_V='8.4.10'
|
||||||
|
|
||||||
# Generate Links for sourcecode
|
# Generate Links for sourcecode
|
||||||
NGINX='https://nginx.org/download/nginx-'$NGINX_V'.tar.gz'
|
NGINX='https://nginx.org/download/nginx-'$NGINX_V'.tar.gz'
|
||||||
|
@ -73,7 +73,7 @@ OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
|
||||||
PCRE='https://sourceforge.net/projects/pcre/files/pcre/'$PCRE_V'/pcre-'$PCRE_V'.tar.gz/download'
|
PCRE='https://sourceforge.net/projects/pcre/files/pcre/'$PCRE_V'/pcre-'$PCRE_V'.tar.gz/download'
|
||||||
# Zlib moved archives to Github
|
# Zlib moved archives to Github
|
||||||
ZLIB='https://github.com/madler/zlib/archive/refs/tags/v'$ZLIB_V'.tar.gz'
|
ZLIB='https://github.com/madler/zlib/archive/refs/tags/v'$ZLIB_V'.tar.gz'
|
||||||
PHP='http://de2.php.net/distributions/php-'$PHP_V'.tar.gz'
|
PHP='https://www.php.net/distributions/php-'$PHP_V'.tar.gz'
|
||||||
|
|
||||||
# Set package dependencies for compiling
|
# Set package dependencies for compiling
|
||||||
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
||||||
|
@ -81,7 +81,7 @@ release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
||||||
if [ "$release" -lt 12 ]; then
|
if [ "$release" -lt 12 ]; then
|
||||||
SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config reprepro dpkg-sig git rsync'
|
SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config reprepro dpkg-sig git rsync'
|
||||||
else
|
else
|
||||||
SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config reprepro git rsync'
|
SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config reprepro git rsync libsqlite3-dev libonig-dev'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function press_enter {
|
function press_enter {
|
||||||
|
@ -130,7 +130,7 @@ if [ $run_apt_update_and_install -eq 1 ]; then
|
||||||
if [ ! -e /usr/local/include/curl ] && [ "$release" -lt 12 ]; then
|
if [ ! -e /usr/local/include/curl ] && [ "$release" -lt 12 ]; then
|
||||||
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
|
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
|
||||||
fi
|
fi
|
||||||
if [ "$release" -eq 13 ]; then
|
if [ ! -e /usr/local/include/curl ] && [ "$release" -eq 13 ]; then
|
||||||
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
|
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
|
||||||
fi
|
fi
|
||||||
press_enter "=== Press enter to continue ==============================================================================="
|
press_enter "=== Press enter to continue ==============================================================================="
|
||||||
|
@ -625,7 +625,6 @@ if [ "$PHP_B" = true ]; then
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
--with-fpm-user=admin \
|
--with-fpm-user=admin \
|
||||||
--with-fpm-group=admin \
|
--with-fpm-group=admin \
|
||||||
--with-mysql \
|
|
||||||
--with-mysqli \
|
--with-mysqli \
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--enable-mbstring \
|
--enable-mbstring \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue