diff --git a/conf/cont-init.d/02run-apache2 b/conf/cont-init.d/02run-apache2
index 337234f297c357cecc11b5cdc04aec083a688023..eef5f4ffb5e87391ff08e50c715868aef8512a95 100755
--- a/conf/cont-init.d/02run-apache2
+++ b/conf/cont-init.d/02run-apache2
@@ -1,5 +1,7 @@
 #!/bin/sh
 
-mkdir -p /run/apache2
+# Create the APACHE_RUN_DIR. Create the 'socks' subdirectory too, otherwise
+# apache2ctl will attempt to run a chown on it and fail.
+mkdir -p /run/apache2 /run/apache2/socks
 
 exit 0