I have been trying to setup an environment to develop php and html on my windows 10 machine. I've spent all evening and finally I believe I have Apache 2.4 and php 7 installed correctly as I can correctly execute info.php () through the localhost:667/info.php.
However, any php inside my html docs located in localhost:667 (apache24/htdocs) does not work.
Here are the lines I added to apache/httpd.conf:
LoadModule php7_module "c:/php/php7apache2_4.dll"
AddType application/x-httpd-php .php
AddHandler application/x-httpd-php .php
DirectoryIndex index.html index.php
#configure the path to php.ini
PHPIniDir "C:/php"
...as well as redefining the listening port as default 80 was conflicting with something.
I renamed php/php.ini-development to php.ini as instructed by an installation manual, and have uncommented the line:
extension_dir = "ext"
as per installation instructions.
Why is the php in my html files still not executing and being shown raw in the source output? Thanks in advance and let me know if you need more information.