1 { lib, phpbb, gnused }:
6 varDir = "/var/lib/phpbb";
10 if [ ! -d ${varDir} ]; then
11 install -m 0755 -o ${apache.user} -g ${apache.user} -d ${varDir}
12 cp -a ${phpbb}/vars/* ${varDir}
13 chown -R ${apache.user}:${apache.user} ${varDir}
15 install -m 0750 -o ${apache.user} -g ${apache.group} -d ${varDir}/phpSessions
22 modules = [ "proxy_fcgi" ];
24 vhostConf = socket: ''
25 Alias /forum "${root}"
27 DirectoryIndex index.php
29 SetHandler "proxy:unix:${socket}|fcgi://localhost"
33 Options FollowSymlinks
36 # add instal to the list after install
37 <LocationMatch "^/(cache|files|install|store)>
43 serviceDeps = [ "postgresql.service" ];
44 basedir = builtins.concatStringsSep ":" [ "/run/wrappers/bin/sendmail" phpbb varDir ];
46 "listen.owner" = apache.user;
47 "listen.group" = apache.group;
49 "pm.max_children" = "60";
50 "pm.process_idle_timeout" = "60";
52 # Needed to avoid clashes in browser cookies (same domain)
53 "php_value[session.name]" = "PhpBBPHPSESSID";
54 "php_admin_value[open_basedir]" = "${basedir}:/tmp";
55 "php_admin_value[session.save_path]" = "${varDir}/phpSessions";