creating and managing subdomains on localhost

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

creating and managing subdomains on localhost

Post by MrPotatoes »

i'm still writing my CMS but i wanted to know some stuff about subdomains. i've gived a really quick trial look around on google for subdomains and PHP and doesn't look too bad. i think it's the management and the use of everything from the base domain that will be hard but i think myself and my friend can manage it.

what i want to know is how would i be able to make a subdomain on my localhost. i'm using XAMPP but i'm switching to WAMP5 this weekend so it would relate more to that (apache is apache...)

anyone have any good ideas? i'm hoping that once i create something locally i can move it remotely with no problems. one of the awesome things about PHP. *giggle*

thanx for any help guys
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

A quick word on subdomains on localhost in IIS would be neat.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

i actually found ome tutorials but i'm going to wait until i get home in order to play with them.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

What localhost really is, is a mapping on your HOSTS file from the domain name "localhost" to the IP address 127.0.0.1. I imagine you'd map subdomain.localhost in the HOSTS file and then change Apache configuration settings accordingly using VirtualHost.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

Ambush Commander wrote:What localhost really is, is a mapping on your HOSTS file from the domain name "localhost" to the IP address 127.0.0.1. I imagine you'd map subdomain.localhost in the HOSTS file and then change Apache configuration settings accordingly using VirtualHost.
i know what localhost is ;), but basically that is the process. i just have to get into the htconf file in apache to do it
guyh
Forum Newbie
Posts: 1
Joined: Thu Jun 15, 2006 10:38 am

Post by guyh »

Post Reply