Skip to content

Commit

Permalink
[impr-OpenMage#517] Add mod_php7 config section to .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbeaty authored and edannenberg committed Dec 6, 2018
1 parent 3c77bc8 commit c540b4e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

DirectoryIndex index.php

############################################
## php5 settings

<IfModule mod_php5.c>

############################################
Expand Down Expand Up @@ -63,6 +66,21 @@

</IfModule>

############################################
## php7 settings
## see above for php_flag descriptions

<IfModule mod_php7.c>
#php_value memory_limit 64M
php_value memory_limit 256M
php_value max_execution_time 18000
php_flag magic_quotes_gpc off
php_flag session.auto_start off
#php_flag zlib.output_compression on
php_flag suhosin.session.cryptua off
php_flag zend.ze1_compatibility_mode Off
</IfModule>

<IfModule mod_security.c>
###########################################
# disable POST processing to not break multiple image upload
Expand Down
3 changes: 3 additions & 0 deletions media/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Options All -Indexes
<IfModule mod_php5.c>
php_flag engine 0
</IfModule>
<IfModule mod_php7.c>
php_flag engine 0
</IfModule>

AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
Expand Down

0 comments on commit c540b4e

Please sign in to comment.