mirror of
https://github.com/danog/php.git
synced 2025-01-21 12:37:14 +01:00
Adjust permissions on Apache directories for running as an arbitrary user
This commit is contained in:
parent
189782763e
commit
e6a51689ce
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -68,8 +68,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
@ -26,8 +26,10 @@ RUN set -ex \
|
||||
; do \
|
||||
rm -rvf "$dir" \
|
||||
&& mkdir -p "$dir" \
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
||||
done
|
||||
&& chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir" \
|
||||
# allow running as an arbitrary user (https://github.com/docker-library/php/issues/743)
|
||||
&& chmod 1777 "$dir" \
|
||||
; done
|
||||
|
||||
# Apache + PHP requires preforking Apache for best results
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
Loading…
x
Reference in New Issue
Block a user