File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# SetEnv MAGE_MODE developer
6
6
7
+ ############################################
8
+ ## overrides default umask value to allow using different
9
+ ## file permissions
10
+
11
+ # SetEnv MAGE_UMASK 022
12
+
7
13
############################################
8
14
## uncomment these lines for CGI mode
9
15
## make sure to specify the correct cgi php binary file name
Original file line number Diff line number Diff line change 10
10
error_reporting (E_ALL );
11
11
#ini_set('display_errors', 1);
12
12
13
+ /* Custom umask value may be provided in MAGE_UMASK environment variable */
14
+ $ mask = isset ($ _SERVER ['MAGE_UMASK ' ]) ? octdec ($ _SERVER ['MAGE_UMASK ' ]) : 002 ;
15
+ umask ($ mask );
16
+
13
17
/* PHP version validation */
14
18
if (version_compare (phpversion (), '5.5.0 ' , '< ' ) === true ) {
15
19
if (PHP_SAPI == 'cli ' ) {
Original file line number Diff line number Diff line change 1
1
############################################
2
- ## uncomment the line below to enable developer mode
2
+ ## overrides deployment configuration mode value
3
+ ## use command bin/magento deploy:mode:set to switch modes
3
4
4
5
# SetEnv MAGE_MODE developer
5
6
7
+ ############################################
8
+ ## overrides default umask value to allow using different
9
+ ## file permissions
10
+
11
+ # SetEnv MAGE_UMASK 022
12
+
6
13
############################################
7
14
## uncomment these lines for CGI mode
8
15
## make sure to specify the correct cgi php binary file name
213
220
############################################
214
221
## prevent clickjacking
215
222
Header set X-Frame-Options SAMEORIGIN
216
- </IfModule >
223
+ </IfModule >
You can’t perform that action at this time.
0 commit comments