Skip to content

Commit 5dcc618

Browse files
author
Robert He
committed
MAGETWO-51428: Duplication of PHP memory settings in sample web-server config files
- remove duplication of PHP memory limits
1 parent 3be18f3 commit 5dcc618

File tree

4 files changed

+2
-92
lines changed

4 files changed

+2
-92
lines changed

.htaccess

-30
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,6 @@
3232

3333
DirectoryIndex index.php
3434

35-
<IfModule mod_php5.c>
36-
37-
############################################
38-
## adjust memory limit
39-
40-
php_value memory_limit 768M
41-
php_value max_execution_time 18000
42-
43-
############################################
44-
## disable automatic session start
45-
## before autoload was initialized
46-
47-
php_flag session.auto_start off
48-
49-
############################################
50-
## enable resulting html compression
51-
52-
#php_flag zlib.output_compression on
53-
54-
###########################################
55-
## disable user agent verification to not break multiple image upload
56-
57-
php_flag suhosin.session.cryptua off
58-
59-
</IfModule>
60-
61-
<IfModule mod_php7.c>
62-
6335
############################################
6436
## adjust memory limit
6537

@@ -82,8 +54,6 @@
8254

8355
php_flag suhosin.session.cryptua off
8456

85-
</IfModule>
86-
8757
<IfModule mod_security.c>
8858
###########################################
8959
## disable POST processing to not break multiple image upload

.htaccess.sample

-30
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,6 @@
3232

3333
DirectoryIndex index.php
3434

35-
<IfModule mod_php5.c>
36-
37-
############################################
38-
## adjust memory limit
39-
40-
php_value memory_limit 768M
41-
php_value max_execution_time 18000
42-
43-
############################################
44-
## disable automatic session start
45-
## before autoload was initialized
46-
47-
php_flag session.auto_start off
48-
49-
############################################
50-
## enable resulting html compression
51-
52-
#php_flag zlib.output_compression on
53-
54-
###########################################
55-
## disable user agent verification to not break multiple image upload
56-
57-
php_flag suhosin.session.cryptua off
58-
59-
</IfModule>
60-
61-
<IfModule mod_php7.c>
62-
6335
############################################
6436
## adjust memory limit
6537

@@ -82,8 +54,6 @@
8254

8355
php_flag suhosin.session.cryptua off
8456

85-
</IfModule>
86-
8757
<IfModule mod_security.c>
8858
###########################################
8959
## disable POST processing to not break multiple image upload

nginx.conf.sample

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ location ~ (index|get|static|report|404|503)\.php$ {
161161
fastcgi_buffers 1024 4k;
162162

163163
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
164-
fastcgi_param PHP_VALUE "memory_limit=768M \n max_execution_time=600";
164+
fastcgi_param PHP_VALUE "memory_limit=768M \n max_execution_time=18000";
165165
fastcgi_read_timeout 600s;
166166
fastcgi_connect_timeout 600s;
167167

pub/.htaccess

+1-31
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@
3232

3333
DirectoryIndex index.php
3434

35-
<IfModule mod_php5.c>
36-
3735
############################################
3836
## Adjust memory limit
3937

40-
php_value memory_limit 256M
38+
php_value memory_limit 768M
4139
php_value max_execution_time 18000
4240

4341
############################################
@@ -56,34 +54,6 @@
5654

5755
php_flag suhosin.session.cryptua off
5856

59-
</IfModule>
60-
61-
<IfModule mod_php7.c>
62-
63-
############################################
64-
## Adjust memory limit
65-
66-
php_value memory_limit 256M
67-
php_value max_execution_time 18000
68-
69-
############################################
70-
## Disable automatic session start
71-
## before autoload was initialized
72-
73-
php_flag session.auto_start off
74-
75-
############################################
76-
## Enable resulting html compression
77-
78-
#php_flag zlib.output_compression on
79-
80-
###########################################
81-
# Disable user agent verification to not break multiple image upload
82-
83-
php_flag suhosin.session.cryptua off
84-
85-
</IfModule>
86-
8757
<IfModule mod_security.c>
8858
###########################################
8959
# Disable POST processing to not break multiple image upload

0 commit comments

Comments
 (0)