I'm having trouble with my Raspberry Pi as a web server. I followed the instructions given in the Raspberry PI user guide:
Sudo apt-get update
Sudo apt-get install apache2 php5 php5-mysql mysql-server
[Enter and confirm MySQL password]
Sudo sh -c 'echo "<?php phpinfo(); ?>" >/var/www/phptest.php'
So then I tried this both on my Raspbian Jessie Raspberry PI 2 on the Netsurf Web Browser and Safari on a Mac OS X Yosemite computer:
On Mac: http://ipaddress/phptest.php
(ipaddress filled with actual ip address)
Results: Random Xfinity page showing all the computers on the network.
On Raspbian: http://localhost/phptest.php
Results: Page not found.
Can any web server expert help with this?
Thanks a lot,