I am totally new to Linux, servers and websites. I recently set up Apache2, Python, PHP, and MySQL for setting up a LAMP server. I am using Xubuntu 16.04 and PHP 7.0.11. I followed a guide and placed a PHP file named testing.php in it with:
<?php phpinfo(); ?>
It doesn't show anything on localhost/testing.php
All it shows is the code itself.
Best Answer
Open the terminal and type:
For PHP 7.2 in Ubuntu 18.04 run the following commands: