From 90eb33c09e57601c67c91c89487963106d28bbb8 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:05:05 +0100 Subject: [PATCH] refactor(php): remove redundant PHP_MODULE entries (#11362) - Add dom and gmp to BASE_MODULES in setup_php() - Remove modules already covered by BASE_MODULES (cli,common,bcmath,curl,dom,gd,gmp,intl,mbstring,readline,xml,zip) - Remove modules already covered by EXTENDED_MODULES (mysql,sqlite3,pgsql,redis,imagick,bz2,apcu) - Remove modules already covered by BUILTIN (ctype,exif,ffi,fileinfo,gettext,iconv,pdo,tokenizer) - Affected: 31 install scripts, 12 ct scripts --- ct/2fauth.sh | 2 +- ct/baikal.sh | 2 +- ct/bar-assistant.sh | 2 +- ct/bookstack.sh | 2 +- ct/grocy.sh | 2 +- ct/kimai.sh | 2 +- ct/linkstack.sh | 2 +- ct/paymenter.sh | 2 +- ct/pelican-panel.sh | 2 +- ct/projectsend.sh | 2 +- ct/snipeit.sh | 2 +- ct/speedtest-tracker.sh | 2 +- install/2fauth-install.sh | 2 +- install/baikal-install.sh | 2 +- install/bar-assistant-install.sh | 2 +- install/bookstack-install.sh | 2 +- install/domain-monitor-install.sh | 2 +- install/firefly-install.sh | 2 +- install/freshrss-install.sh | 2 +- install/grocy-install.sh | 2 +- install/heimdall-dashboard-install.sh | 2 +- install/hortusfox-install.sh | 2 +- install/investbrain-install.sh | 2 +- install/invoiceninja-install.sh | 2 +- install/kimai-install.sh | 2 +- install/koel-install.sh | 2 +- install/leantime-install.sh | 2 +- install/librenms-install.sh | 2 +- install/limesurvey-install.sh | 2 +- install/linkstack-install.sh | 2 +- install/monica-install.sh | 2 +- install/part-db-install.sh | 2 +- install/paymenter-install.sh | 2 +- install/pelican-panel-install.sh | 2 +- install/projectsend-install.sh | 2 +- install/snipeit-install.sh | 2 +- install/speedtest-tracker-install.sh | 2 +- install/wallabag-install.sh | 2 +- install/wallos-install.sh | 2 +- install/wavelog-install.sh | 2 +- install/wordpress-install.sh | 2 +- misc/tools.func | 2 +- 42 files changed, 42 insertions(+), 42 deletions(-) diff --git a/ct/2fauth.sh b/ct/2fauth.sh index bf2a9a191..e20f11778 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -41,7 +41,7 @@ function update_script() { msg_ok "Backup Created" if ! dpkg -l | grep -q 'php8.4'; then - PHP_VERSION="8.4" PHP_MODULE="common,ctype,fileinfo,mysql,cli,tokenizer,dom,redis,session,openssl" PHP_FPM="YES" setup_php + PHP_VERSION="8.4" PHP_FPM="YES" setup_php sed -i 's/php8\.[0-9]/php8.4/g' /etc/nginx/conf.d/2fauth.conf fi fetch_and_deploy_gh_release "2fauth" "Bubka/2FAuth" "tarball" diff --git a/ct/baikal.sh b/ct/baikal.sh index 1667c4ab6..076ae3770 100644 --- a/ct/baikal.sh +++ b/ct/baikal.sh @@ -37,7 +37,7 @@ function update_script() { mv /opt/baikal /opt/baikal-backup msg_ok "Backed up data" - PHP_APACHE="YES" PHP_MODULE="pgsql,curl" PHP_VERSION="8.3" setup_php + PHP_APACHE="YES" PHP_VERSION="8.3" setup_php setup_composer fetch_and_deploy_gh_release "baikal" "sabre-io/Baikal" "tarball" diff --git a/ct/bar-assistant.sh b/ct/bar-assistant.sh index 34dc6a540..d73e0f8e3 100644 --- a/ct/bar-assistant.sh +++ b/ct/bar-assistant.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop nginx msg_ok "Stopped nginx" - PHP_VERSION="8.4" PHP_FPM=YES PHP_MODULE="ffi,redis,pdo-sqlite" setup_php + PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="pdo-sqlite" setup_php msg_info "Backing up Bar Assistant" mv /opt/bar-assistant /opt/bar-assistant-backup diff --git a/ct/bookstack.sh b/ct/bookstack.sh index 908bf6668..caf899285 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -39,7 +39,7 @@ function update_script() { msg_ok "Backup finished" fetch_and_deploy_gh_release "bookstack" "BookStackApp/BookStack" "tarball" - PHP_MODULE="ldap,tidy,bz2,mysqli" PHP_FPM="YES" PHP_APACHE="YES" PHP_VERSION="8.3" setup_php + PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="ldap,tidy,mysqli" setup_php setup_composer msg_info "Restoring backup" diff --git a/ct/grocy.sh b/ct/grocy.sh index a2c279f2e..9aaf345f8 100644 --- a/ct/grocy.sh +++ b/ct/grocy.sh @@ -29,7 +29,7 @@ function update_script() { fi php_ver=$(php -v | head -n 1 | awk '{print $2}') if [[ ! $php_ver == "8.3"* ]]; then - PHP_VERSION="8.3" PHP_MODULE="sqlite3,bz2" PHP_APACHE="yes" setup_php + PHP_VERSION="8.3" PHP_APACHE="YES" setup_php fi if check_for_gh_release "grocy" "grocy/grocy"; then msg_info "Updating grocy" diff --git a/ct/kimai.sh b/ct/kimai.sh index 782a9e235..a0cbe1e95 100644 --- a/ct/kimai.sh +++ b/ct/kimai.sh @@ -32,7 +32,7 @@ function update_script() { fi setup_mariadb - PHP_VERSION="8.4" PHP_MODULE="mysql" PHP_APACHE="YES" setup_php + PHP_VERSION="8.4" PHP_APACHE="YES" setup_php setup_composer if check_for_gh_release "kimai" "kimai/kimai"; then diff --git a/ct/linkstack.sh b/ct/linkstack.sh index 892b4ecf3..d046046d6 100644 --- a/ct/linkstack.sh +++ b/ct/linkstack.sh @@ -28,7 +28,7 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - PHP_VERSION="8.3" PHP_MODULE="sqlite3" PHP_APACHE="YES" setup_php + PHP_VERSION="8.3" PHP_APACHE="YES" setup_php msg_warn "LinkStack should be updated via the user interface." exit } diff --git a/ct/paymenter.sh b/ct/paymenter.sh index 0f40d9b1b..b602537b3 100644 --- a/ct/paymenter.sh +++ b/ct/paymenter.sh @@ -31,7 +31,7 @@ function update_script() { CURRENT_PHP=$(php -v 2>/dev/null | awk '/^PHP/{print $2}' | cut -d. -f1,2) if [[ "$CURRENT_PHP" != "8.3" ]]; then - PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="mysql,redis" setup_php + PHP_VERSION="8.3" PHP_FPM="YES" setup_php setup_composer sed -i 's|php8\.2-fpm\.sock|php8.3-fpm.sock|g' /etc/nginx/sites-available/paymenter.conf $STD systemctl reload nginx diff --git a/ct/pelican-panel.sh b/ct/pelican-panel.sh index 6287660ff..31f8ee92e 100644 --- a/ct/pelican-panel.sh +++ b/ct/pelican-panel.sh @@ -35,7 +35,7 @@ function update_script() { if [[ "$CURRENT_PHP" != "8.4" ]]; then msg_info "Migrating PHP $CURRENT_PHP to 8.4" $STD apt remove -y php"${CURRENT_PHP//./}"* - PHP_VERSION="8.4" PHP_MODULE="mysql,sqlite3" PHP_APACHE="YES" PHP_FPM="YES" setup_php + PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php msg_ok "Migrated PHP $CURRENT_PHP to 8.4" fi diff --git a/ct/projectsend.sh b/ct/projectsend.sh index 32b536a26..c85a51ad3 100644 --- a/ct/projectsend.sh +++ b/ct/projectsend.sh @@ -36,7 +36,7 @@ function update_script() { php_ver=$(php -v | head -n 1 | awk '{print $2}') if [[ ! $php_ver == "8.4"* ]]; then - PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="pdo,mysql,gettext,fileinfo" setup_php + PHP_VERSION="8.4" PHP_APACHE="YES" setup_php fi mv /opt/projectsend/includes/sys.config.php /opt/sys.config.php diff --git a/ct/snipeit.sh b/ct/snipeit.sh index f73b9310e..7681840f2 100644 --- a/ct/snipeit.sh +++ b/ct/snipeit.sh @@ -42,7 +42,7 @@ function update_script() { msg_ok "Created Backup" fetch_and_deploy_gh_release "snipe-it" "grokability/snipe-it" "tarball" - [[ "$(php -v 2>/dev/null)" == PHP\ 8.2* ]] && PHP_VERSION="8.3" PHP_MODULE="common,ctype,ldap,fileinfo,iconv,mysql,soap,xsl" PHP_FPM="YES" setup_php + [[ "$(php -v 2>/dev/null)" == PHP\ 8.2* ]] && PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="ldap,soap,xsl" setup_php sed -i 's/php8.2/php8.3/g' /etc/nginx/conf.d/snipeit.conf setup_composer diff --git a/ct/speedtest-tracker.sh b/ct/speedtest-tracker.sh index 5c37517b3..649908e6b 100644 --- a/ct/speedtest-tracker.sh +++ b/ct/speedtest-tracker.sh @@ -30,7 +30,7 @@ function update_script() { fi if check_for_gh_release "speedtest-tracker" "alexjustesen/speedtest-tracker"; then - PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="common,sqlite3,redis" setup_php + PHP_VERSION="8.4" PHP_FPM="YES" setup_php setup_composer NODE_VERSION="22" setup_nodejs setcap cap_net_raw+ep /bin/ping diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index bb70fb82f..44ae3e08d 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y nginx msg_ok "Installed Dependencies" -PHP_VERSION="8.4" PHP_MODULE="common,ctype,fileinfo,mysql,tokenizer,dom,redis" PHP_FPM="YES" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="2fauth_db" MARIADB_DB_USER="2fauth" setup_mariadb_db diff --git a/install/baikal-install.sh b/install/baikal-install.sh index 2757694ff..5f5478286 100644 --- a/install/baikal-install.sh +++ b/install/baikal-install.sh @@ -18,7 +18,7 @@ $STD apt install -y git msg_ok "Installed Dependencies" PG_VERSION="16" setup_postgresql -PHP_APACHE="YES" PHP_MODULE="pgsql,curl" PHP_VERSION="8.3" setup_php +PHP_APACHE="YES" PHP_VERSION="8.3" setup_php setup_composer fetch_and_deploy_gh_release "baikal" "sabre-io/Baikal" "tarball" PG_DB_NAME="baikal_db" PG_DB_USER="baikal_user" PG_DB_PASS="$(openssl rand -base64 12)" setup_postgresql_db diff --git a/install/bar-assistant-install.sh b/install/bar-assistant-install.sh index a02015068..f7d4dc8c1 100644 --- a/install/bar-assistant-install.sh +++ b/install/bar-assistant-install.sh @@ -23,7 +23,7 @@ $STD apt install -y \ libvips msg_ok "Installed Dependencies" -PHP_VERSION="8.4" PHP_FPM=YES PHP_MODULE="ffi,redis,pdo-sqlite" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="pdo-sqlite" setup_php setup_composer NODE_VERSION="22" setup_nodejs setup_meilisearch diff --git a/install/bookstack-install.sh b/install/bookstack-install.sh index b6c645f22..53cdce196 100644 --- a/install/bookstack-install.sh +++ b/install/bookstack-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y make msg_ok "Installed Dependencies" -PHP_MODULE="ldap,tidy,bz2,mysqli" PHP_FPM="YES" PHP_APACHE="YES" PHP_VERSION="8.3" setup_php +PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="ldap,tidy,mysqli" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="bookstack_db" MARIADB_DB_USER="bookstack_user" setup_mariadb_db diff --git a/install/domain-monitor-install.sh b/install/domain-monitor-install.sh index de63097be..8a990d87f 100644 --- a/install/domain-monitor-install.sh +++ b/install/domain-monitor-install.sh @@ -26,7 +26,7 @@ $STD apt install -y --no-install-recommends \ pkg-config msg_ok "Installed Dependencies" -PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="domain_monitor" MARIADB_DB_USER="domainmonitor" setup_mariadb_db diff --git a/install/firefly-install.sh b/install/firefly-install.sh index 046f756b7..a47b81870 100644 --- a/install/firefly-install.sh +++ b/install/firefly-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="mysql" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="firefly" MARIADB_DB_USER="firefly" setup_mariadb_db diff --git a/install/freshrss-install.sh b/install/freshrss-install.sh index 0333e833d..6fa6e8462 100644 --- a/install/freshrss-install.sh +++ b/install/freshrss-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_MODULE="curl,common,xml,mbstring,intl,zip,pgsql,gmp" PHP_APACHE="YES" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" setup_php PG_VERSION="16" setup_postgresql PG_DB_NAME="freshrss" PG_DB_USER="freshrss_usr" setup_postgresql_db diff --git a/install/grocy-install.sh b/install/grocy-install.sh index ae60af268..392f9a71e 100644 --- a/install/grocy-install.sh +++ b/install/grocy-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y apt-transport-https msg_ok "Installed Dependencies" -PHP_VERSION="8.3" PHP_MODULE="sqlite3,bz2" PHP_APACHE="yes" setup_php +PHP_VERSION="8.3" PHP_APACHE="YES" setup_php fetch_and_deploy_gh_release "grocy" "grocy/grocy" "prebuild" "latest" "/var/www/html" "grocy*.zip" msg_info "Configuring grocy" diff --git a/install/heimdall-dashboard-install.sh b/install/heimdall-dashboard-install.sh index 9e4404782..b73c7519e 100644 --- a/install/heimdall-dashboard-install.sh +++ b/install/heimdall-dashboard-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y apt-transport-https msg_ok "Installed Dependencies" -PHP_VERSION="8.4" PHP_MODULE="bz2,sqlite3" PHP_FPM="YES" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" setup_php setup_composer fetch_and_deploy_gh_release "Heimdall" "linuxserver/Heimdall" "tarball" diff --git a/install/hortusfox-install.sh b/install/hortusfox-install.sh index 47f345efe..d1f1e1620 100644 --- a/install/hortusfox-install.sh +++ b/install/hortusfox-install.sh @@ -15,7 +15,7 @@ update_os setup_mariadb MARIADB_DB_NAME="hortusfox" MARIADB_DB_USER="hortusfox" setup_mariadb_db -PHP_MODULE="exif,mysql" PHP_APACHE="YES" PHP_FPM="NO" PHP_VERSION="8.3" setup_php +PHP_VERSION="8.3" PHP_APACHE="YES" setup_php setup_composer fetch_and_deploy_gh_release "hortusfox" "danielbrendel/hortusfox-web" "tarball" diff --git a/install/investbrain-install.sh b/install/investbrain-install.sh index 80de472ad..e626ccb5d 100644 --- a/install/investbrain-install.sh +++ b/install/investbrain-install.sh @@ -28,7 +28,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" export PHP_VERSION="8.4" -PHP_FPM=YES PHP_MODULE="gd,zip,intl,pdo,pgsql,pdo-pgsql,bcmath,opcache,mbstring,redis" setup_php +PHP_FPM="YES" PHP_MODULE="pdo-pgsql" setup_php setup_composer NODE_VERSION="22" setup_nodejs PG_VERSION="17" setup_postgresql diff --git a/install/invoiceninja-install.sh b/install/invoiceninja-install.sh index 1890c8181..f08c40e92 100644 --- a/install/invoiceninja-install.sh +++ b/install/invoiceninja-install.sh @@ -35,7 +35,7 @@ msg_ok "Installed Dependencies" setup_mariadb MARIADB_DB_NAME="invoiceninja" MARIADB_DB_USER="invoiceninja" setup_mariadb_db -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bcmath,curl,gd,gmp,imagick,intl,mbstring,mysql,soap,xml,zip" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="soap" setup_php fetch_and_deploy_gh_release "invoiceninja" "invoiceninja/invoiceninja" "prebuild" "latest" "/opt/invoiceninja" "invoiceninja.tar.gz" diff --git a/install/kimai-install.sh b/install/kimai-install.sh index e79b545b2..89c39d438 100644 --- a/install/kimai-install.sh +++ b/install/kimai-install.sh @@ -22,7 +22,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" setup_mariadb -PHP_VERSION="8.4" PHP_MODULE="mysql" PHP_APACHE="YES" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" setup_php setup_composer msg_info "Setting up database" diff --git a/install/koel-install.sh b/install/koel-install.sh index 0fdd83c59..f8af3c9dd 100644 --- a/install/koel-install.sh +++ b/install/koel-install.sh @@ -23,7 +23,7 @@ msg_ok "Installed Dependencies" PG_VERSION="16" setup_postgresql PG_DB_NAME="koel" PG_DB_USER="koel" setup_postgresql_db -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bz2,exif,imagick,pgsql,sqlite3" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" setup_php NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs setup_composer diff --git a/install/leantime-install.sh b/install/leantime-install.sh index 3227b0c00..9d346cadb 100644 --- a/install/leantime-install.sh +++ b/install/leantime-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_MODULE="mysql" PHP_APACHE="YES" PHP_FPM="YES" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php setup_mariadb MARIADB_DB_NAME="leantime" MARIADB_DB_USER="leantime" setup_mariadb_db fetch_and_deploy_gh_release "leantime" "Leantime/leantime" "prebuild" "latest" "/opt/leantime" Leantime*.tar.gz diff --git a/install/librenms-install.sh b/install/librenms-install.sh index 101e5289f..28337ab08 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -38,7 +38,7 @@ $STD apt install -y \ python3-pip msg_ok "Installed Python Dependencies" -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="gmp,mysql,snmp" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="snmp" setup_php setup_mariadb setup_composer PYTHON_VERSION="3.13" setup_uv diff --git a/install/limesurvey-install.sh b/install/limesurvey-install.sh index dc39b0f57..c12468a91 100644 --- a/install/limesurvey-install.sh +++ b/install/limesurvey-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="imap,ldap,mysql" setup_php +PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="imap,ldap" setup_php setup_mariadb msg_info "Configuring MariaDB Database" diff --git a/install/linkstack-install.sh b/install/linkstack-install.sh index 3ec2007eb..cb5f3aaca 100644 --- a/install/linkstack-install.sh +++ b/install/linkstack-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.3" PHP_MODULE="sqlite3" PHP_APACHE="YES" setup_php +PHP_VERSION="8.3" PHP_APACHE="YES" setup_php fetch_and_deploy_gh_release "linkstack" "linkstackorg/linkstack" "prebuild" "latest" "/var/www/html/" "linkstack.zip" msg_info "Configuring LinkStack" diff --git a/install/monica-install.sh b/install/monica-install.sh index b0e6977fa..61b242158 100644 --- a/install/monica-install.sh +++ b/install/monica-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.2" PHP_APACHE="YES" PHP_MODULE="dom,gmp,iconv,mysqli,pdo-mysql,redis,tokenizer" setup_php +PHP_VERSION="8.2" PHP_APACHE="YES" PHP_MODULE="mysqli,pdo-mysql" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="monica" MARIADB_DB_USER="monica" setup_mariadb_db diff --git a/install/part-db-install.sh b/install/part-db-install.sh index 1412f8dba..4d52efa71 100644 --- a/install/part-db-install.sh +++ b/install/part-db-install.sh @@ -16,7 +16,7 @@ update_os NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs PG_VERSION="16" setup_postgresql PG_DB_NAME="partdb" PG_DB_USER="partdb" setup_postgresql_db -PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="xsl,pgsql" PHP_POST_MAX_SIZE="100M" PHP_UPLOAD_MAX_FILESIZE="100M" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="xsl" PHP_POST_MAX_SIZE="100M" PHP_UPLOAD_MAX_FILESIZE="100M" setup_php setup_composer msg_info "Installing Part-DB (Patience)" diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index c463060e1..2f506f78b 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -21,7 +21,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" setup_mariadb -PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="common,mysql,redis" setup_php +PHP_VERSION="8.3" PHP_FPM="YES" setup_php setup_composer fetch_and_deploy_gh_release "paymenter" "paymenter/paymenter" "prebuild" "latest" "/opt/paymenter" "paymenter.tar.gz" chmod -R 755 /opt/paymenter/storage/* /opt/paymenter/bootstrap/cache/ diff --git a/install/pelican-panel-install.sh b/install/pelican-panel-install.sh index 3c9e8289d..9d3846320 100644 --- a/install/pelican-panel-install.sh +++ b/install/pelican-panel-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_MODULE="mysql,sqlite3" PHP_APACHE="YES" PHP_FPM="YES" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="panel" MARIADB_DB_USER="pelican" setup_mariadb_db diff --git a/install/projectsend-install.sh b/install/projectsend-install.sh index 35a13fb44..a580ddc45 100644 --- a/install/projectsend-install.sh +++ b/install/projectsend-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="pdo,mysql,gettext,fileinfo" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" setup_php setup_mariadb MARIADB_DB_NAME="projectsend" MARIADB_DB_USER="projectsend" setup_mariadb_db fetch_and_deploy_gh_release "projectsend" "projectsend/projectsend" "prebuild" "latest" "/opt/projectsend" "projectsend-r*.zip" diff --git a/install/snipeit-install.sh b/install/snipeit-install.sh index ec09ef687..5e41bff70 100644 --- a/install/snipeit-install.sh +++ b/install/snipeit-install.sh @@ -19,7 +19,7 @@ $STD apt install -y \ nginx msg_ok "Installed Dependencies" -PHP_VERSION="8.3" PHP_MODULE="common,ctype,ldap,fileinfo,iconv,mysql,soap,xsl" PHP_FPM="YES" setup_php +PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="ldap,soap,xsl" setup_php setup_composer fetch_and_deploy_gh_release "snipe-it" "grokability/snipe-it" "tarball" setup_mariadb diff --git a/install/speedtest-tracker-install.sh b/install/speedtest-tracker-install.sh index a0db51bc2..64601748e 100644 --- a/install/speedtest-tracker-install.sh +++ b/install/speedtest-tracker-install.sh @@ -20,7 +20,7 @@ $STD apt install -y \ setcap cap_net_raw+ep /bin/ping msg_ok "Installed Dependencies" -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="common,sqlite3,redis" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" setup_php setup_composer NODE_VERSION="22" setup_nodejs fetch_and_deploy_gh_release "speedtest-tracker" "alexjustesen/speedtest-tracker" "tarball" diff --git a/install/wallabag-install.sh b/install/wallabag-install.sh index 2bc5639fd..457f40f15 100644 --- a/install/wallabag-install.sh +++ b/install/wallabag-install.sh @@ -22,7 +22,7 @@ msg_ok "Installed Dependencies" setup_mariadb MARIADB_DB_NAME="wallabag" MARIADB_DB_USER="wallabag" setup_mariadb_db -PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="bcmath,bz2,curl,gd,imagick,intl,mbstring,mysql,redis,tidy,xml,zip" setup_php +PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="tidy" setup_php setup_composer NODE_VERSION="22" setup_nodejs fetch_and_deploy_gh_release "wallabag" "wallabag/wallabag" "prebuild" "latest" "/opt/wallabag" "wallabag-*.tar.gz" diff --git a/install/wallos-install.sh b/install/wallos-install.sh index 1394e3008..a37a07938 100644 --- a/install/wallos-install.sh +++ b/install/wallos-install.sh @@ -14,7 +14,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="imagick,bz2,sqlite3" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" setup_php fetch_and_deploy_gh_release "wallos" "ellite/Wallos" "tarball" msg_info "Installing Wallos (Patience)" diff --git a/install/wavelog-install.sh b/install/wavelog-install.sh index 91d84b43b..b70507749 100644 --- a/install/wavelog-install.sh +++ b/install/wavelog-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_MODULE="mysql" PHP_APACHE="YES" PHP_MAX_EXECUTION_TIME="600" setup_php +PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MAX_EXECUTION_TIME="600" setup_php setup_mariadb MARIADB_DB_NAME="wavelog" MARIADB_DB_USER="waveloguser" setup_mariadb_db fetch_and_deploy_gh_release "wavelog" "wavelog/wavelog" "tarball" diff --git a/install/wordpress-install.sh b/install/wordpress-install.sh index 1a0b7a9a6..19600e8fd 100644 --- a/install/wordpress-install.sh +++ b/install/wordpress-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="common,snmp,imap,mysql" PHP_APACHE="YES" setup_php +PHP_VERSION="8.4" PHP_FPM="YES" PHP_APACHE="YES" PHP_MODULE="snmp,imap" setup_php setup_mariadb MARIADB_DB_NAME="wordpress_db" MARIADB_DB_USER="wordpress" setup_mariadb_db diff --git a/misc/tools.func b/misc/tools.func index a48c2f118..8f1ec56e1 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -4512,7 +4512,7 @@ function setup_php() { # Base modules - essential for most PHP applications # Note: 'common' provides many built-in extensions - local BASE_MODULES="cli,common,bcmath,curl,gd,intl,mbstring,readline,xml,zip" + local BASE_MODULES="cli,common,bcmath,curl,dom,gd,gmp,intl,mbstring,readline,xml,zip" # Add opcache only for PHP < 8.5 (it's built-in starting from 8.5) if [[ "$PHP_MAJOR" -lt 8 ]] || [[ "$PHP_MAJOR" -eq 8 && "$PHP_MINOR" -lt 5 ]]; then