В общем решил проблему сам
/etc/apache2/mods-enabled/fastcgi.conf
<IfModule mod_fastcgi.c>
AddType application/x-httpd-php5 .php
Action application/x-httpd-php5 /php-fcgi5
AddType application/x-httpd-php7 .php
Action application/x-httpd-php7 /php-fcgi7
# PHP5
Alias /php-fcgi5 /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -appConnTimeout 10 -idle-timeout 250 -socket /var/run/php5-fpm.s$
# PHP7
Alias /php-fcgi7 /usr/lib/cgi-bin/php
FastCgiExternalServer /usr/lib/cgi-bin/php -appConnTimeout 10 -idle-timeout 250 -socket /run/php/php7.0-fpm.sock $
# Apache 2.4+
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
#
</IfModule>
а далее в настройках хоста или в htaccess пишем
<FilesMatch "\.php">
SetHandler application/x-httpd-php5
</FilesMatch>
или
<FilesMatch "\.php">
SetHandler application/x-httpd-php7
</FilesMatch>