#1147633 Invalid command 'php_admin_flag'

#1147633#5
Date:
2026-09-13 23:07:51 UTC
From:
To:
During the installation of Debian Edu 13.7.0
(‘debian-edu-13.7.0-amd64-BD-1.iso’) in graphical and text modes, an error
occurred in the logs:

```
cf-agent[11335]: CFEngine(agent) Finished command related to promiser
'/usr/sbin/service apache restart' -- an error occurred, returned 1
cf-agent[11335]: CFEngine(agent) Q: "...in/service apac": Restarting Apache
httpd web server: apache2 failed! Q: "...in/service apac": The apache2
configtest failed. ... (warning). Q: "...in/service apac": Output of config
test was: Q: "...in/service apac": AH00526: Syntax error on line 9 of
/etc/apache2/mods-enabled/debian-edu-userdir.conf: Q: "...in/service apac":
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module
not included in e server configuration
```
It seems that the Apache module `libapache2-mod-php` is missing and must be
installed before restarting Apache.

Line 9 of /etc/apache2/mods-enabled/debian-edu-userdir.conf:
php_admin_flag engine off

There is only one Apache module installed: `libapache2-mod-auth-gssapi`
Check it on TTY4 during the installation process with the command:
`grep "libapache2-mod-" /target/var/log/installer/* | grep -i setting`
/target/var/log/installer/syslog:Sep 13 19:44:46 in-target: Setting up
libapache2-mod-auth-gssapi (1.6.4-3+b1) ...^M



Sincerely,
Serhii Horichenko

#1147633#10
Date:
2026-09-14 00:24:27 UTC
From:
To:
After installing the library `apt install libapache2-mod-php` on a server
with only the role "Main", Apache2 started without errors.

Sincerely,
Serhii Horichenko

#1147633#15
Date:
2026-09-14 19:22:51 UTC
From:
To:
Control: reassign -1 education-main-server
Control: found -1 2.13.7
Control: severity -1 important

This needs to be fixed in src:debian-edu package (i.e. in
education-main-server meta package).

Mike

#1147633#24
Date:
2026-09-14 19:23:49 UTC
From:
To:
Hello,

Bug #1147633 in debian-edu reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu/-/commit/8f59526614437f94beec3ec27fc1adb4d8b93f80
------------------------------------------------------------------------
tasks/main-server: Add libapache2-mod-php. (Closes: #1147633).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1147633