How to Create Host Name on Ubuntu?

Open your termina:

ctrl+alt+t

Edit your host file

Set your Host Name:

127.0.0.1 HostName

Save the file:

ctrl+o

Enter

ctrl+x

Now you can set your host name as domain on Ampps by adding new domain.