# Uploaded media is data, never code.
php_flag engine off
<FilesMatch "\.(php|phar|phtml|pl|py|cgi|asp|aspx|jsp|sh)$">
  Require all denied
</FilesMatch>
Options -ExecCGI -Indexes
AddType text/plain .php .phtml .phar
