From 3d67713fb60966c5b971e7e630d45f2910dba141 Mon Sep 17 00:00:00 2001 From: dota? =op Date: Tue, 6 Jan 2015 01:54:49 -0200 Subject: [PATCH] apache-2.4.10: fix default httpd.conf Work around errors: AH00526: Syntax error on line 31 of /etc/httpd/extra/httpd-multilang-errordoc.conf: Invalid command 'LanguagePriority', perhaps misspelled or defined by a module not included in the server configuration AH00526: Syntax error on line 78 of /etc/httpd/extra/httpd-languages.conf: Invalid command 'LanguagePriority', perhaps misspelled or defined by a module not included in the server configuration AH00526: Syntax error on line 10 of /etc/httpd/extra/httpd-userdir.conf: Invalid command 'UserDir', perhaps misspelled or defined by a module not included in the server configuration [Tue Jan 06 01:34:14.130358 2015] [proxy_balancer:emerg] [pid 24013:tid 140060053915520] AH01177: Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm loaded?? [Tue Jan 06 01:34:14.130456 2015] [:emerg] [pid 24013:tid 140060053915520] AH00020: Configuration Failed, exiting --- srcpkgs/apache/template | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/srcpkgs/apache/template b/srcpkgs/apache/template index a8bf52ab7c0..dcdd5ab74d1 100644 --- a/srcpkgs/apache/template +++ b/srcpkgs/apache/template @@ -1,7 +1,7 @@ # Template file for 'apache' pkgname=apache version=2.4.10 -revision=4 +revision=5 wrksrc=httpd-${version} build_style=gnu-configure configure_args="--prefix= --enable-pie --enable-modules=all @@ -77,14 +77,30 @@ post_install() { # Enable userdir, languages, autoindex, errors. # Set a working ServerRoot, disable mod_unique_id. # Set and enable ServerName to 127.0.0.1. - sed -e 's|#\(Include /etc/httpd/extra/httpd-multilang-errordoc.conf\)|\1|' \ + + # FIXME: + # + # don't include: + # #Include /etc/httpd/extra/httpd-multilang-errordoc.conf + # #Include /etc/httpd/extra/httpd-languages.conf + # #Include /etc/httpd/extra/httpd-userdir.conf + # + # and load: + # LoadModule slotmem_shm_module /usr/libexec/httpd/mod_slotmem_shm.so + # + # until a solution is found, since they don't allow httpd to start! + # + # -e 's|#\(Include /etc/httpd/extra/httpd-multilang-errordoc.conf\)|\1|' \ + # -e 's|#\(Include /etc/httpd/extra/httpd-languages.conf\)|\1|' \ + # -e 's|#\(Include /etc/httpd/extra/httpd-userdir.conf\)|\1|' \ + + sed \ -e 's|#\(Include /etc/httpd/extra/httpd-autoindex.conf\)|\1|' \ - -e 's|#\(Include /etc/httpd/extra/httpd-languages.conf\)|\1|' \ - -e 's|#\(Include /etc/httpd/extra/httpd-userdir.conf\)|\1|' \ -e 's|#\(Include /etc/httpd/extra/httpd-default.conf\)|\1|' \ -e 's|ServerRoot \"\"|ServerRoot \"/etc/httpd\"|' \ -e 's|#\(ServerName\).*|\1 127.0.0.1:80|' \ -e 's|\(LoadModule unique_id_module.*\)|#\1|' \ + -e 's|#\(LoadModule slotmem_shm_module /usr/libexec/httpd/mod_slotmem_shm.so\)|\1|' \ -i ${DESTDIR}/etc/httpd/httpd.conf # symlinks for /etc/httpd