# PHP Handler Configuration - Ensures PHP files execute instead of download
<FilesMatch "\.php$">
    SetHandler "proxy:unix:/opt/cpanel/ea-php74/root/usr/var/run/php-fpm/php-fpm.sock|fcgi://localhost"
</FilesMatch>

# Ensure PHP files have correct MIME type
<IfModule mod_mime.c>
    AddType application/x-httpd-php .php .php7 .php74
    AddType application/x-httpd-php-source .phps
</IfModule>

# Prevent PHP files from being served as downloads
<FilesMatch "\.ph(p[0-9]?|tml)$">
    ForceType application/x-httpd-php
</FilesMatch>

