在没有文件扩展名的php7中解析application / x-httpd-php

Ran into this while moving some sites from a one server to another:

The .htaccess file only has this in certain directories:

SetHandler application/x-httpd-php

but it does not parse url's like:

domain.com/dir/filenameWithoutExtension/

where 'filenameWithoutExtension' contains the actual content. And should generate the page

The site is hosted on Ubuntu (Directadmin) with:

First PHP: PHP 7 php-fpm Second PHP: PHP 5.6 suphp Apache 2.4.33

Does anyone know how to manage this correctly?