LAMP question

For 2 days I could not get PHP to work in Apache. Always one thing or another. I was using localhost and 127.0.0.1 to test my script and it would never work. I looked at my hostnames in Yast and found localhost for both my 127.0.0.1 IP address and for my internet IP address. I decided to try my internet address for test script and voila! Never used Apache or PHP before and would like to know what is the reason script works on one and not the other. Also, does that mean using the internet IP only for PHP scripts? Any security risks I’m unaware of?

Got it working on 127.0.0.1. Just cleaning up minor issue with phpMyAdmin and I am on my way.