Subversion Repositories configs

Rev

Rev 56 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#
2
# PHP is an HTML-embedded scripting language which attempts to make it
3
# easy for developers to write dynamically generated webpages.
4
#
179 - 5
 
6
# Cannot load both php5 and php7 modules
7
<IfModule !mod_php5.c>
8
  <IfModule prefork.c>
9
    LoadModule php7_module modules/libphp7.so
10
  </IfModule>
4 - 11
</IfModule>
12
 
56 - 13
 
179 - 14
<IfModule !mod_php5.c>
15
  <IfModule !prefork.c>
16
    LoadModule php7_module modules/libphp7-zts.so
17
  </IfModule>
18
</IfModule>
4 - 19
#
179 - 20
# The following lines prevent .user.ini files from being viewed by Web clients.
4 - 21
#
179 - 22
<Files ".user.ini">
23
    <IfModule mod_authz_core.c>
24
        Require all denied
25
    </IfModule>
26
    <IfModule !mod_authz_core.c>
27
        Order allow,deny
28
        Deny from all
29
        Satisfy All
30
    </IfModule>
31
</Files>
56 - 32
 
33
#
34
# Allow php to handle Multiviews
35
#
4 - 36
AddType text/html .php
37
 
38
#
39
# Add index.php to the list of files that will be served as directory
40
# indexes.
41
#
42
DirectoryIndex index.php
43
 
179 - 44
# mod_php options
45
<IfModule  mod_php7.c>
46
    #
47
    # Cause the PHP interpreter to handle files with a .php extension.
48
    #
49
    <FilesMatch \.(php|phar)$>
50
        SetHandler application/x-httpd-php
51
    </FilesMatch>
56 - 52
 
179 - 53
    #
54
    # Uncomment the following lines to allow PHP to pretty-print .phps
55
    # files as PHP source code:
56
    #
57
    #<FilesMatch \.phps$>
58
    #    SetHandler application/x-httpd-php-source
59
    #</FilesMatch>
60
 
61
    #
62
    # Apache specific PHP configuration options
63
    # those can be override in each configured vhost
64
    #
65
    php_value session.save_handler "files"
66
    php_value session.save_path    "/var/lib/php/session"
67
    php_value soap.wsdl_cache_dir  "/var/lib/php/wsdlcache"
68
 
69
    #php_value opcache.file_cache   "/var/lib/php/opcache"
70
</IfModule>