<IfModule mod_php.c>
    # For Apache with mod_php
    AddHandler application/x-httpd-php82 .php
</IfModule>

<IfModule mod_php7.c>
    # For Apache with mod_php7
    AddHandler application/x-httpd-php82 .php
</IfModule>

<IfModule fcgid_module>
    # For FastCGI
    FcgidWrapper "/usr/local/php82/bin/php-cgi" .php
</IfModule>

<IfModule proxy_fcgi_module>
    # For PHP-FPM
    <FilesMatch "\.php$">
        SetHandler "proxy:unix:/var/run/php82-fpm.sock|fcgi://localhost"
    </FilesMatch>
</IfModule>