AddType text/html .php .phtml AddHandler fcgid-script .php .phtml FcgidWrapper /usr/local/cpanel/cgi-sys/php70w
These lines will activate php v. 7 in fast-cgi mode. You can use these vaersions on our servers:
- FcgidWrapper /usr/local/cpanel/cgi-sys/php54w - для php 5.4.*.
- FcgidWrapper /usr/local/cpanel/cgi-sys/php55w - для php 5.5.*
- FcgidWrapper /usr/local/cpanel/cgi-sys/php56w - для php 5.6.*
- FcgidWrapper /usr/local/cpanel/cgi-sys/php70w - для php 7.0.*
It is better to place this .htaccess file in the home dir of your account (level up from public_html dir).
To configure php you can use .user.ini file. This file should be placed in public_html dir. Run php-reload from console after changing this file for instant effect.