1 { lib, phpbb, gnused }:
3 varDir = "/var/lib/phpbb";
7 if [ ! -d ${varDir} ]; then
8 install -m 0755 -o ${apache.user} -g ${apache.user} -d ${varDir}
9 cp -a ${phpbb}/vars/* ${varDir}
10 chown -R ${apache.user}:${apache.user} ${varDir}
12 install -m 0750 -o ${apache.user} -g ${apache.group} -d ${varDir}/phpSessions
15 chatonsHostingProperties = {
16 file.datetime = "2022-08-21T22:50:00";
19 description = "Forum software";
20 website = "https://tools.immae.eu/forum";
21 logo = "https://www.phpbb.com/favicon.ico";
24 status.description = "OK";
25 registration.load = "OPEN";
26 install.type = "PACKAGE";
33 modules = [ "proxy_fcgi" ];
35 vhostConf = socket: ''
36 Alias /forum "${root}"
38 DirectoryIndex index.php
40 SetHandler "proxy:unix:${socket}|fcgi://localhost"
44 Options FollowSymlinks
47 # add instal to the list after install
48 <LocationMatch "^/(cache|files|install|store)>
54 serviceDeps = [ "postgresql.service" ];
55 basedir = builtins.concatStringsSep ":" [ "/run/wrappers/bin/sendmail" phpbb varDir ];
57 "listen.owner" = apache.user;
58 "listen.group" = apache.group;
60 "pm.max_children" = "60";
61 "pm.process_idle_timeout" = "60";
63 # Needed to avoid clashes in browser cookies (same domain)
64 "php_value[session.name]" = "PhpBBPHPSESSID";
65 "php_admin_value[open_basedir]" = "${basedir}:/tmp";
66 "php_admin_value[session.save_path]" = "${varDir}/phpSessions";