343cbc
#
343cbc
# The following lines prevent .user.ini files from being viewed by Web clients.
343cbc
#
343cbc
<Files ".user.ini">
343cbc
    Require all denied
343cbc
</Files>
343cbc
343cbc
#
343cbc
# Allow php to handle Multiviews
343cbc
#
343cbc
AddType text/html .php
343cbc
343cbc
#
343cbc
# Add index.php to the list of files that will be served as directory
343cbc
# indexes.
343cbc
#
343cbc
DirectoryIndex index.php
343cbc
343cbc
#
343cbc
# Redirect to local php-fpm (no mod_php in default configuration)
343cbc
#
343cbc
<IfModule !mod_php5.c>
343cbc
  <IfModule !mod_php7.c>
343cbc
    # Enable http authorization headers
343cbc
    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
343cbc
343cbc
    <FilesMatch \.(php|phar)$>
343cbc
        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
343cbc
    </FilesMatch>
343cbc
  </IfModule>
343cbc
</IfModule>
343cbc
343cbc
#
343cbc
# mod_php is deprecated as FPM is now used by default with httpd in event mode
343cbc
# mod_php is only used when explicitly enabled or httpd switch to prefork mode
343cbc
#
343cbc
# mod_php options
343cbc
#
343cbc
<IfModule  mod_php7.c>
343cbc
    #
343cbc
    # Cause the PHP interpreter to handle files with a .php extension.
343cbc
    #
343cbc
    <FilesMatch \.(php|phar)$>
343cbc
        SetHandler application/x-httpd-php
343cbc
    </FilesMatch>
343cbc
343cbc
    #
343cbc
    # Uncomment the following lines to allow PHP to pretty-print .phps
343cbc
    # files as PHP source code:
343cbc
    #
343cbc
    #<FilesMatch \.phps$>
343cbc
    #    SetHandler application/x-httpd-php-source
343cbc
    #</FilesMatch>
343cbc
343cbc
    #
343cbc
    # Apache specific PHP configuration options
343cbc
    # those can be override in each configured vhost
343cbc
    #
343cbc
    php_value session.save_handler "files"
343cbc
    php_value session.save_path    "/var/lib/php/session"
343cbc
    php_value soap.wsdl_cache_dir  "/var/lib/php/wsdlcache"
343cbc
343cbc
    #php_value opcache.file_cache   "/var/lib/php/opcache"
343cbc
</IfModule>