Skip to content

Commit ffd9cc6

Browse files
author
Oleksii Korshenko
authored
Merge pull request magento#161 from magento-fearless-kiwis/FearlessKiwis-MAGETWO-51428-php_memory_limits
[Fearless Kiwis] MAGETWO-51428: PHP memory limits
2 parents 27c7763 + 8ae3f47 commit ffd9cc6

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
@@ -167,7 +167,7 @@ location ~ (index|get|static|report|404|503)\.php$ {
167167
fastcgi_buffers 1024 4k;
168168

169169
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
170-
fastcgi_param PHP_VALUE "memory_limit=768M \n max_execution_time=600";
170+
fastcgi_param PHP_VALUE "memory_limit=768M \n max_execution_time=18000";
171171
fastcgi_read_timeout 600s;
172172
fastcgi_connect_timeout 600s;
173173

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)