Skip to content

Commit 3765950

Browse files
authored
Merge pull request #4 from scara/Fix-TMP-Permissions-To-Avoid-UPLOAD_ERR_NO_TMP_DIR_Error
Fix TMP permissions to avoid UPLOAD_ERR_NO_TMP_DIR.
2 parents 6efd643 + a7385ff commit 3765950

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM php:7.1-apache
22

33
ADD root/ /
4+
# Fix the original permissions of /tmp, the PHP default upload tmp dir.
5+
RUN chmod 777 /tmp && chmod +t /tmp
6+
# Setup the required extensions.
47
RUN /tmp/setup/php-extensions.sh
58
RUN /tmp/setup/oci8-extension.sh
69

0 commit comments

Comments
 (0)