How to disable php execution for certain files

Solution Verified - Updated -

Issue

  • We have certain files being executed as php scripts that we don't want to be. How can we prevent that?
  • Dual extension files (i.e. .php.png) are still executed as php.

Environment

  • Red Hat Enterprise Linux
  • Apache httpd
  • mod_php

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content