Hi all, I installed Ubuntu Server with the LAMP package and there is behavior I don't understand. If I access the web server by its local IP, my browser will display the index.html file located at /var/www/index.html, and PHP apparently works. But if I try to access it over the internet (using my cellphone's connection), the browser loads the index.html file located at /var/lib/tomcat6/webapps/ROOT/index.html (I have no idea why), and PHP does not work properly -- for example if I enter
<?php echo '<p>Hello World</p>'; ?>
the browser displays
Hello World
'; ?>
Which seems like PHP is not being interpreted correctly, even though the same code works when being loaded locally under /var/www/.
I'm not sure if it's related but I'm using a non-standard port for website because of ISP port blocking. I just configured my router to forwrad that non-standard port to the Ubuntu server's private IP.
Hopefully someone will be able to recognize some basic configuration issue here. Thanks!