0

Ubuntu 20.04.3 LTC Apache 2.4.52 PHP 8 VirtualBox on Macbook

I am a newbie to APM, and tried to build / install it from the source. (not installing from the packages)

Apache build / install was successful, and PHP build / install seems to be okay. now tried put two files in /usr/local/apache2.4.52/htdocs (DocumentRoot); index.html and phpinfo.php.

index.html <html><body><h1>It really works!</h1></body></html>

phpinfo.php <?php phpinfo();?>

localhost works find, shows "It really works!" but, localhost/phpinfo.php shows the screenshot... Opening phpinfo.php

any advice?

Syscall
  • 18,131
  • 10
  • 32
  • 49
  • Maybe https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-but-the-code-shows-in-the-browser-source-code ? – Syscall Jan 09 '22 at 18:30

0 Answers0