OS 10.4, Apache, MySQL & PHP

jer2eydevil88

Registered
I got all the above installed and working correctly locally but for some reason whenever I try to visit a subdirectory that has an index.php my mac redirects to the hostname.local instead of my domain.

Has anyone else had this problem and even better can someone help me fix it?

to see what I mean check out http://www.maddr.net which I used php to display the date. Then check http://www.maddr.net/chess which should load a chess game, instead your likely to get an error like "http://www.minibox.local.com cannot be found.
 
Edit /etc/httpd/httpd.conf and change the ServerName directive to your domain name.

Code:
ServerName www.maddr.net

You can find the /etc/httpd directory by using the Go in Finder:
Code:
command-shift-g
 
Back
Top