Вставляем в директиву виртуального хоста в /etc/httpd/conf/httpd.conf для CentOS / RH для Ubuntu / Debian /etc/apache2/apache.conf
AddHandler application/x-httpd-php5 php
Action application/x-httpd-php5 /php-bin/php
Action application/x-httpd-php /php-bin/php
Для php 7.x:
AddHandler application/x-httpd-php7 php
Action application/x-httpd-php7 /php-bin/php
Action application/x-httpd-php /php-bin/php
Be First to Comment