#!/bin/sh
# Enter the source directory to make sure the script runs where the user expects
echo "Executing custom startup script."
sed -i -e 's/EnableSendfile Off/EnableSendfile Off/g' /etc/apache2/apache2.conf
sed -i -e '/.*{APACHE_DOCUMENT_ROOT}.*/a EnableMMAP Off\nEnableSendfile Off' /etc/apache2/apache2.conf
/usr/sbin/apache2ctl -D FOREGROUND