Disable PHP in directory (including all sub-directories) with .htaccess
snippet in htaccess

Disable PHP in directory (including all sub-directories) with .htaccess

user4548

php_flag engine off

Disable PHP in directory (including all sub-directories) with .htaccess

user5326

<Directory /your/directorypath/>
     php_admin_value engine Off
</Directory>

Disable PHP in directory (including all sub-directories) with .htaccess

user9583

<VirtualHost *>
    ServerName sourcecode.testserver.me
    DocumentRoot /var/www/example
    AddType text/plain php
</VirtualHost>