# Prevent direct access to PHP files
<FilesMatch "\.(php|inc)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>
# Allow access to index.php only
<Files "index.php">
    Order Allow,Deny
    Allow from all
</Files>
# Or use this alternative method
<FilesMatch "^(?!index\.php$).*\.php$">
    Deny from all
</FilesMatch>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
   php_flag display_errors On
   php_value upload_max_filesize 64M
   php_value post_max_size 64M
   php_value memory_limit 256M
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_value upload_max_filesize 64M
   php_value post_max_size 64M
   php_value memory_limit 256M
</IfModule>
# END cPanel-generated php ini directives, do not edit