-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.htaccess
More file actions
37 lines (33 loc) · 949 Bytes
/
.htaccess
File metadata and controls
37 lines (33 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Need mod_env mod_rewrite mod_php458
#https://stackoverflow.com/a/49031283/29314471
<IfModule mod_php4.c>
SetEnv PHP_IS_ENABLED yes
</IfModule>
<IfModule mod_php5.c>
SetEnv PHP_IS_ENABLED yes
</IfModule>
<IfModule mod_php7.c>
SetEnv PHP_IS_ENABLED yes
</IfModule>
<IfModule mod_php8.c>
SetEnv PHP_IS_ENABLED yes
</IfModule>
<If "reqenv('PHP_IS_ENABLED')=='yes'||reqenv('REDIRECT_PHP_IS_ENABLED')=='yes'">
php_flag display_errors 0
php_flag implicit_flush 1
php_flag opcache.enable 0
php_flag xcache.cacher 0
php_flag apc.enable 0
# still - xdebug slow things
php_flag xdebug.default_enable 0
php_flag xdebug.show_exception_trace 0
php_flag xdebug.remote_autostart 0
php_flag xdebug.remote_enable 0
php_value xdebug.mode off
php_value output_bufering 0
php_value max_execution_time 600
php_value memory_limit 130M
php_value mbstring.internal_encoding UTF-8
php_value mbstring.func_overload 0
php_value date.timezone "Europe/Moscow"
</If>