Go to public_html then click setting checkbox Show Hidden Files (dotfiles)

after crate new file add file name  .htaccess 

add this code

<FilesMatch ".(?:html|php)$">
SetHandler application/x-httpd-alt-phpXX
</FilesMatch>

where XX is the PHP version you wish to set. It can be 52, 53, 54, 55, 56, 70, 71,72, 73, 74, 80, 81, 82, 83 or 84.

For example: i need 7.4

<FilesMatch ".(?:html|php)$"> SetHandler application/x-httpd-alt-php74
</FilesMatch>
Was this answer helpful? 766 Users Found This Useful (587 Votes)