PHP not working when accessed through a domain name, but works fine when accessed through IP
- by Allister
Done a basic setup of Ubuntu Server installing Apache, PHP and mysql through tasksel. When I browse to the IP address of the server it works fine and allows me to render PHP scripts fine.
So I added a DNS entry for the server onto my local DNS server, calling it webdev.lazer.net
When I go to this domain name through my browser it renders HTML documents fine but if I try to view PHP scripts it doesn't render and downloads in plain text to the browser (As if the PHP parser isn't rendering .php documents).
I'm sure its some rookie mistake, but any help would be appreciated. Thanks