I'm trying to install LAMP on Linux Mint 17.1 following this tutorial here.
The Apache part was okay, I can access the localhost which shows a beautiful "It works!" message.
After installing Apache2, I ran:
sudo apt-get install php5 libapache2-mod-php5
which I believe worked fine.
Then I create a simple php file to show the version of the php currently installed:
sudo gedit /var/www/testphp.php
with this inside:
<?php phpinfo(); ?>
But when I try to access http://localhost/testphp.php it gives me a 404 error:
Not Found The requested URL /testphp.php was not found on this server. Apache/2.4.7 (Ubuntu) Server at localhost Port 80
I've already restarted the Apache server and tried to create another php file but got the same issue.
How can I install/run it properly on Linux Mint 17.1?