Skip to content

Commit a78eec3

Browse files
committed
41-idoit-install-fails-on-ubuntu-2404-lts
1 parent 93108b7 commit a78eec3

File tree

1 file changed

+44
-3
lines changed

1 file changed

+44
-3
lines changed

idoit-install

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,22 @@ function identifyOS {
390390
PHP_FPM_UNIT="php-fpm"
391391
elif [[ "$NAME" = "openSUSE" && "$VERSION_ID" == 12* ]]; then
392392
abort "Error: openSUSE 12 is out-dated. It's not supported anymore. Please upgrade."
393+
elif [[ "$NAME" == "Ubuntu" && "$VERSION_ID" == "24.04" ]]; then
394+
# FEATURE: not supported with actual i-doit version see https://kb.i-doit.com/en/installation/system-requirements.html
395+
export DEBIAN_FRONTEND="noninteractive"
396+
OS="ubuntu2404"
397+
APACHE_USER="www-data"
398+
APACHE_GROUP="www-data"
399+
APACHE_CONFIG_FILE="/etc/apache2/sites-available/i-doit.conf"
400+
MARIADB_CONFIG_FILE="/etc/mysql/mariadb.conf.d/99-i-doit.cnf"
401+
PHP_CONFIG_FILE="/etc/php/8.3/mods-available/i-doit.ini"
402+
MARIADB_SOCKET="/var/run/mysqld/mysqld.sock"
403+
PHP_FPM_SOCKET="/var/run/php/php8.3-fpm.sock"
404+
APACHE_UNIT="apache2"
405+
MARIADB_UNIT="mysql"
406+
MEMCACHED_UNIT="memcached"
407+
PHP_FPM_UNIT="php8.3-fpm"
408+
abort "Error: Ubuntu 24.04 is using PHP 8.3 which is actually not supported by i-doit. See https://kb.i-doit.com/en/installation/system-requirements.html. \nPlease use Ubuntu 22.04 or install i-doit manuel with PHP 8.2."
393409
elif [[ "$NAME" == "Ubuntu" && "$VERSION_ID" == "22.04" ]]; then
394410
export DEBIAN_FRONTEND="noninteractive"
395411
OS="ubuntu2204"
@@ -556,6 +572,9 @@ function configureOS {
556572
"debian11")
557573
configureDebian11
558574
;;
575+
"ubuntu2404")
576+
configureUbuntu2404
577+
;;
559578
"ubuntu2204")
560579
configureUbuntu2204
561580
;;
@@ -657,6 +676,25 @@ function configureUbuntu2204 {
657676
memcached unzip moreutils || abort "Unable to install required Ubuntu packages"
658677
}
659678

679+
function configureUbuntu2404 {
680+
log "Keep your Ubuntu packages up-to-date"
681+
apt-get -qq --yes update || abort "Unable to update Ubuntu package repositories"
682+
apt-get -qq --yes full-upgrade || abort "Unable to perform update of Ubuntu packages"
683+
apt-get -qq --yes clean || abort "Unable to cleanup Ubuntu packages"
684+
apt-get -qq --yes autoremove || abort "Unable to remove unnecessary Ubuntu packages"
685+
686+
log "Install required Ubuntu packages"
687+
apt-get -qq --yes install --no-install-recommends \
688+
apache2 libapache2-mod-fcgid \
689+
mariadb-client mariadb-server \
690+
php8.3-bcmath php8.3-cli php8.3-common php8.3-curl php8.3-fpm php8.3-gd \
691+
php8.3-ldap php8.3-mbstring php8.3-mysql php8.3-opcache php8.3-pgsql \
692+
php8.3-soap php8.3-xml php8.3-zip \
693+
php-memcached \
694+
memcached unzip moreutils || abort "Unable to install required Ubuntu packages"
695+
}
696+
697+
660698
function configureCentOS7 {
661699
log "Keep your yum packages up-to-date"
662700
yum --assumeyes --quiet update || abort "Unable to update yum packages"
@@ -1085,6 +1123,9 @@ function configurePHP {
10851123
"8.2")
10861124
php_en_mod=$(command -v phpenmod)
10871125
;;
1126+
"8.3")
1127+
php_en_mod=$(command -v phpenmod)
1128+
;;
10881129
*)
10891130
abort "PHP ${php_version} is not supported. Please follow the system requirements. We recommend version ${RECOMMENDED_PHP_VERSION}."
10901131
;;
@@ -1131,7 +1172,7 @@ function configurePHPFPM {
11311172
log "Configure PHP-FPM"
11321173

11331174
case "$OS" in
1134-
"debian11" | "debian12" | "ubuntu2004" | "ubuntu2204")
1175+
"debian11" | "debian12" | "ubuntu2004" | "ubuntu2204" | "ubuntu2404")
11351176
unitctl "restart" "$PHP_FPM_UNIT"
11361177
;;
11371178
"rhel7" | "rhel8" | "centos7" | "centos8")
@@ -1292,7 +1333,7 @@ EOF
12921333

12931334
unitctl "restart" "$APACHE_UNIT"
12941335
;;
1295-
"debian11" | "debian12" | "ubuntu2004" | "ubuntu2204")
1336+
"debian11" | "debian12" | "ubuntu2004" | "ubuntu2204" | "ubuntu2404")
12961337
a2_en_site=$(command -v a2ensite)
12971338
a2_dis_site=$(command -v a2dissite)
12981339
a2_en_mod=$(command -v a2enmod)
@@ -1588,7 +1629,7 @@ function secureMariaDB {
15881629
-e"FLUSH PRIVILEGES;" || abort "SQL statement failed"
15891630
;;
15901631

1591-
"sles15" | "opensuse15" | "debian11" | "ubuntu2004" | "ubuntu2204")
1632+
"sles15" | "opensuse15" | "debian11" | "ubuntu2004" | "ubuntu2204" | "ubuntu2404")
15921633
log "Allow $MARIADB_SUPERUSER_USERNAME login only from localhost"
15931634
"$MARIADB_BIN" \
15941635
-h"$MARIADB_HOSTNAME" \

0 commit comments

Comments
 (0)