summaryrefslogtreecommitdiff
path: root/strata/apache-httpd-server/httpd-server.morph
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-09 12:09:00 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:29 +0000
commit39bf81cb8e62617835390573bb960be8962a0a74 (patch)
treeaa574f8b8f2b2c6e620dfe412a89f980a59f952e /strata/apache-httpd-server/httpd-server.morph
parent2196309da5dabee3de1e735846b211f1dd63270e (diff)
downloaddefinitions-39bf81cb8e62617835390573bb960be8962a0a74.tar.gz
Add apache httpd server stratum
Diffstat (limited to 'strata/apache-httpd-server/httpd-server.morph')
-rw-r--r--strata/apache-httpd-server/httpd-server.morph34
1 files changed, 34 insertions, 0 deletions
diff --git a/strata/apache-httpd-server/httpd-server.morph b/strata/apache-httpd-server/httpd-server.morph
new file mode 100644
index 00000000..901ea31a
--- /dev/null
+++ b/strata/apache-httpd-server/httpd-server.morph
@@ -0,0 +1,34 @@
+name: httpd-server
+kind: chunk
+configure-commands:
+- ./buildconf --with-apr=/usr/share/apr-1
+- |
+ ./configure --prefix="$PREFIX" \
+ --enable-authnz-fcgi \
+ --enable-mods-shared=all \
+ --enable-mpms-shared=all \
+ --enable-suexec=shared \
+ --with-apr=/usr/bin/apr-2-config \
+ --with-apr-util=/usr/bin/apu-1-config \
+ --with-suexec-bin=/usr/lib/httpd/suexec \
+ --with-suexec-caller=apache \
+ --with-suexec-docroot=/srv/www \
+ --with-suexec-logfile=/var/log/httpd/suexec.log \
+ --with-suexec-uidmin=100 \
+ --with-suexec-userdir=public_html
+build-commands:
+- make
+install-commands:
+- PREFIX="$PREFIX" DESTDIR="$DESTDIR" make install
+system-integration:
+ httpd-server-misc:
+ 01-adduser:
+ - groupadd -g 25 apache
+ - |
+ useradd -c "Apache Server" -d /srv/www -g apache \
+ -s /bin/false -u 25 apache
+ 02-configure-httpd-server:
+ - mv -v /usr/sbin/suexec /usr/lib/httpd/suexec
+ - chgrp apache /usr/lib/httpd/suexec
+ - chmod 4754 /usr/lib/httpd/suexec
+ - chown -v -R apache:apache /srv/www