In that case there is maybe another way around it. In /etc/hosts, change the line 127.0.0.1 localhost into 127.0.0.1 localhost laptop That should keep Apache happy. -ascs -----Message d'origine----- De : Hans Tovetjärn [mailto:hans@xxxxxxxxxxxx] Envoyé : mardi 18 décembre 2007 09:10 À : users@xxxxxxxxxxxxxxxx Objet : Re: Custom hostname and Apache 2.2.6 Hello, there is no such line in /etc/hosts, unfortunately: "## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost " My IP is recieved through DHCP, so I'm not sure if it's permanent? As for the advice regarding setting my computer name in the System Preferences pane, I have already done that, but it doesn't seem to affect the \u in terminal. > Here's a shot in the dark. > > The file /etc/hosts most probably has a line containing host-xx-xxx- > xx-xxx, associating the host name with an IP address, looking somewhat > like this: > > 10.11.12.14 host-xx-xxx-xx-xxx > > Edit that line and add laptop: > > 10.11.12.14 host-xx-xxx-xx-xxx laptop > > > I think that should do the trick. In order to permanently change the > hostname, I believe you would need to modify the file /etc/ hostname > and/or /etc/nodename. You would need root privileges for that. > > > -ascs Regards, Hans --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx