PHP not working when accessed through a domain name, but works fine when accessed through IP
Posted
by
Allister
on Server Fault
See other posts from Server Fault
or by Allister
Published on 2011-11-12T16:04:00Z
Indexed on
2011/11/12
17:54 UTC
Read the original article
Hit count: 387
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
© Server Fault or respective owner