-3
<?php
phpinfo();
?>

IS given as the be all and end all solution to any PHP problems .. however I have not found anywhere a solution to the problem that

<?php
phpinfo();
?> 

is what is actually displayed on the screen. A wordpress install into the same directory will indicate that PHP isn't running. However at a SSH screen php -v indicates that php IS running

I have torn everything out numerous times (using apt-get & purging & re installing). I have googled and gone to the 10,11 12 pages of results attempting to find a solution ... I have found a mistake in the Ubuntu documentation (it referred to a directory as being named as .... module when in fact it is called modules). I have found repeated enquiries about exactly the same problem ... the standard answer is create a file info.php put in

<?php
phpinfo();
?>

and there's the solution... No where I have found oh put in

<?php
phpinfo();
?>

AND if you still see .... try X Y or Z. I have tried "due diligence" I have tried anyone of a hundred possible "solutions" all ending up with

<?php
phpinfo();
?>

but Nothing. Please does anyone have anything else I can try? Thank you

muru
  • 207,228
Sogwac
  • 11

1 Answers1

0

First remove all the previous php installations using sudo apt-get remove, them follow the instructions provided in this page, https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu

to install the php components properly.

It is really helpful.