I am using my laptop as a localhost. I have the following products installed:
- Apache 2.4
- PHP 7.1
- MySQL 5.7
I created a phpinfo.php
file in C:\Apache24\htdocs\
with the following code:
<?php
phpinfo();
?>
I also made sure to add this to my Apache config file:
LoadModule php7_module C:/php/php7apache2_4.dll
<ifmodule php7_module="">
DirectoryIndex index.html index.php
AddHandler application/x-httpd-php .php
PHPIniDir "C:/php"
</ifmodule>
When I go to http://localhost/phpinfo.php all I get is:
<?php
phpinfo();
?>
I am expecting some info about my PHP version, etc. So I am getting it to render text within the file, but it doesn't seem to actually process functions.
EDIT: OK, it looks like when I add the line LoadModule php7_module C:/php/php7apache2_4.dll
, the Apache service can no longer be restarted.