Hello:
Windows 10 workstation
Apache 2.4
PHP 7.2.
I've installed Apache and PHP on a Windows 10 workstation and everything (including PHP) works beautifully. But when I change the documentroot in the http.conf file, Apache stops sending .php files to the PHP engine. Apache opens the .php files in the new directory, but the code no longer gets parsed and processed by the php engine (php.exe). Apache no longer runs those files through the php module.
Here is what I've changed in the http.conf file:
OLD SETTING:
DocumentRoot "${SRVROOT}/htdocs"
NEW SETTING:
DocumentRoot "C:/WWW"
When I change it back again, PHP works just fine.
I've also tried changing the doc_root setting in php.ini, but that doesn't help. Apache loads the .php page, but never sends it to the php server.
Any thoughts or help?
Thanks!