0

I am following this tutorial for just Apache and PHP. The tutorial also includes a MySQL setup, but I don't need that right now:

https://www.youtube.com/watch?v=vb0vQYoeWt0

I literally followed the tutorial exactly as show in the video.

I included the following at the bottom of the httpd.conf file:

PHPIniDir "C:/php7"
LoadModule php7_module "C:/php7/php7apache2_4.dll"
AddHandler application/x-httpd-php .php

I am on a 64bit windows machine.

I downloaded the 64bit versions of Apache and the 64bit thread safe version of PHP7.4.

I am confused, because the PHP is still rendering HTML in the browser.

Upon running php -v in the command prompt, I get the following:

PHP 7.4.12 (cli) (built: Oct 27 2020 17:18:47) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Apache is definitely running, because I got the initial "It Works!" in the browser.

Edit

I did try to utilize the accepted answer on the suggested duplicate question:

PHP code is not being executed, instead code shows on the page

The accepted answer is using PHP5, and I tried to change it to PHP7. I only got the same results.

halfer
  • 19,471
  • 17
  • 87
  • 173
John Beasley
  • 2,242
  • 4
  • 32
  • 68

0 Answers0