Skip to content

Commit aae1d9c

Browse files
author
silinmykola
committed
change server config files for php 8 compatibility
1 parent 2a6762f commit aae1d9c

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

pub/.htaccess

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,30 @@
6262
php_flag suhosin.session.cryptua off
6363
</IfModule>
6464

65+
<IfModule mod_php.c>
66+
############################################
67+
## Adjust memory limit
68+
69+
php_value memory_limit 756M
70+
php_value max_execution_time 18000
71+
72+
############################################
73+
## Disable automatic session start
74+
## before autoload was initialized
75+
76+
php_flag session.auto_start off
77+
78+
############################################
79+
## Enable resulting html compression
80+
81+
#php_flag zlib.output_compression on
82+
83+
###########################################
84+
# Disable user agent verification to not break multiple image upload
85+
86+
php_flag suhosin.session.cryptua off
87+
</IfModule>
88+
6589
<IfModule mod_security.c>
6690
###########################################
6791
# Disable POST processing to not break multiple image upload

pub/media/.htaccess

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
Options -Indexes
22

33
<IfModule mod_php5.c>
4-
php_flag engine 0
4+
php_flag engine 0
55
</IfModule>
66

77
<IfModule mod_php7.c>
8-
php_flag engine 0
8+
php_flag engine 0
9+
</IfModule>
10+
11+
<IfModule mod_php.c>
12+
php_flag engine 0
913
</IfModule>
1014

1115
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi

pub/static/.htaccess

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<IfModule mod_php5.c>
2-
php_flag engine 0
2+
php_flag engine 0
33
</IfModule>
44

55
<IfModule mod_php7.c>
6-
php_flag engine 0
6+
php_flag engine 0
7+
</IfModule>
8+
9+
<IfModule mod_php.c>
10+
php_flag engine 0
711
</IfModule>
812

913
# To avoid situation when web server automatically adds extension to path
@@ -102,7 +106,7 @@ AddType application/xml xml
102106
ExpiresByType application/zip "access plus 0 seconds"
103107
ExpiresByType application/x-gzip "access plus 0 seconds"
104108
ExpiresByType application/x-bzip2 "access plus 0 seconds"
105-
109+
106110
# Manifest
107111
<FilesMatch \.(webmanifest)$>
108112
ExpiresDefault "access plus 0 seconds"

0 commit comments

Comments
 (0)