I followed this tutorial to install lamp: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
At step 4: See PHP on your Server, I was told to do the following:
First create a new file:
> sudo nano /var/www/info.php
Add in the following line:
<?php
phpinfo();
?>
Then,I should see a page with lots of information, when I type in localhost/info.php
But the page is just white. No error message.
If I type in localhost/index
, then the Apache2 Ubuntu default page loads.
Later, I moved info.php to /var/www/html
but the page is still white.
At this point, I'm clueless. Any suggestions to fix this problem?
which php
&whereis php
?