- system.activationScripts.chloe_dev = chloe.activationScript;
- system.extraSystemBuilderCmds = ''
- mkdir -p $out/webapps
- ln -s ${chloe.app.webRoot} $out/webapps/${chloe.apache.webappName}
+ systemd.services.phpfpm-chloe_integration.after = lib.mkAfter [ "mysql.service" ];
+ systemd.services.phpfpm-chloe_integration.wants = [ "mysql.service" ];
+ services.phpfpm.pools.chloe_integration = {
+ user = config.services.httpd.Inte.user;
+ group = config.services.httpd.Inte.group;
+ settings = {
+ "listen.owner" = apacheUser;
+ "listen.group" = apacheGroup;
+ "php_admin_value[upload_max_filesize]" = "20M";
+ "php_admin_value[post_max_size]" = "20M";
+ # "php_admin_flag[log_errors]" = "on";
+ "php_admin_value[open_basedir]" = "${../../../../pkgs/webapps/spip/spip_mes_options.php}:${./config}:${webRoot}:${varDir}:/tmp";
+ "php_admin_value[session.save_path]" = "${varDir}/phpSessions";
+ "pm" = "ondemand";
+ "pm.max_children" = "5";
+ "pm.process_idle_timeout" = "60";
+ };
+ phpPackage = pkgs.php72;
+ };
+ system.activationScripts.chloe_integration = {
+ deps = [ "wrappers" ];
+ text = ''
+ install -m 0755 -o ${apacheUser} -g ${apacheGroup} -d ${varDir} ${varDir}/IMG ${varDir}/tmp ${varDir}/local
+ install -m 0750 -o ${apacheUser} -g ${apacheGroup} -d ${varDir}/phpSessions