I have recently been trying to install PHP and Apache on my computer. After many hours, they\'re installed. I have modified the httpd.conf and php.ini files like everyone sa
Debian 9 solution:
touch /etc/apache2/conf-available/php.conf
Add to file next lines:
AddType application/x-httpd-php .php SetHandler application/x-httpd-php AddType application/x-httpd-php .php SetHandler application/x-httpd-php
Then run:
a2enconf php && service apache2 restart