0

My php code does not execute. Instead it is being sent as a comment. I have researched this issue for days and I believe I have everything correct. All the enable mods and confs are in place and I can run php from the command line. Just in apache2 it does not run. Note that it does not print the code as many people have had issues with. It just shows the code commented if I view the page source from the browser.

See attached pic

Any idea what could be causing this? Thanks very much!

MrDarkLynx
  • 686
  • 1
  • 9
  • 15
user3529891
  • 35
  • 1
  • 3
  • Paul, as I tried to explain, the code does not show up on the page in the browser. this is not the same issue. – user3529891 Feb 25 '17 at 13:49
  • I got it working. Had to modify the php7.0.conf file and uncomment the directive "SetHandler application/x-httpd-php" between the first (it was on line 2 of the file) Hope this helps someone else who may have this same issue. – user3529891 Feb 25 '17 at 21:21

0 Answers0