@@ -390,6 +390,22 @@ function identifyOS {
390
390
PHP_FPM_UNIT=" php-fpm"
391
391
elif [[ " $NAME " = " openSUSE" && " $VERSION_ID " == 12* ]]; then
392
392
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."
393
409
elif [[ " $NAME " == " Ubuntu" && " $VERSION_ID " == " 22.04" ]]; then
394
410
export DEBIAN_FRONTEND=" noninteractive"
395
411
OS=" ubuntu2204"
@@ -556,6 +572,9 @@ function configureOS {
556
572
" debian11" )
557
573
configureDebian11
558
574
;;
575
+ " ubuntu2404" )
576
+ configureUbuntu2404
577
+ ;;
559
578
" ubuntu2204" )
560
579
configureUbuntu2204
561
580
;;
@@ -657,6 +676,25 @@ function configureUbuntu2204 {
657
676
memcached unzip moreutils || abort " Unable to install required Ubuntu packages"
658
677
}
659
678
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
+
660
698
function configureCentOS7 {
661
699
log " Keep your yum packages up-to-date"
662
700
yum --assumeyes --quiet update || abort " Unable to update yum packages"
@@ -1085,6 +1123,9 @@ function configurePHP {
1085
1123
" 8.2" )
1086
1124
php_en_mod=$( command -v phpenmod)
1087
1125
;;
1126
+ " 8.3" )
1127
+ php_en_mod=$( command -v phpenmod)
1128
+ ;;
1088
1129
* )
1089
1130
abort " PHP ${php_version} is not supported. Please follow the system requirements. We recommend version ${RECOMMENDED_PHP_VERSION} ."
1090
1131
;;
@@ -1131,7 +1172,7 @@ function configurePHPFPM {
1131
1172
log " Configure PHP-FPM"
1132
1173
1133
1174
case " $OS " in
1134
- " debian11" | " debian12" | " ubuntu2004" | " ubuntu2204" )
1175
+ " debian11" | " debian12" | " ubuntu2004" | " ubuntu2204" | " ubuntu2404 " )
1135
1176
unitctl " restart" " $PHP_FPM_UNIT "
1136
1177
;;
1137
1178
" rhel7" | " rhel8" | " centos7" | " centos8" )
@@ -1292,7 +1333,7 @@ EOF
1292
1333
1293
1334
unitctl " restart" " $APACHE_UNIT "
1294
1335
;;
1295
- " debian11" | " debian12" | " ubuntu2004" | " ubuntu2204" )
1336
+ " debian11" | " debian12" | " ubuntu2004" | " ubuntu2204" | " ubuntu2404 " )
1296
1337
a2_en_site=$( command -v a2ensite)
1297
1338
a2_dis_site=$( command -v a2dissite)
1298
1339
a2_en_mod=$( command -v a2enmod)
@@ -1588,7 +1629,7 @@ function secureMariaDB {
1588
1629
-e" FLUSH PRIVILEGES;" || abort " SQL statement failed"
1589
1630
;;
1590
1631
1591
- " sles15" | " opensuse15" | " debian11" | " ubuntu2004" | " ubuntu2204" )
1632
+ " sles15" | " opensuse15" | " debian11" | " ubuntu2004" | " ubuntu2204" | " ubuntu2404 " )
1592
1633
log " Allow $MARIADB_SUPERUSER_USERNAME login only from localhost"
1593
1634
" $MARIADB_BIN " \
1594
1635
-h" $MARIADB_HOSTNAME " \
0 commit comments