User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 375,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,054 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 532 | Replies: 1
Reply
Join Date: May 2008
Posts: 1
Reputation: billbod50 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
billbod50 billbod50 is offline Offline
Newbie Poster

wampserver 2.0 domain name

  #1  
May 10th, 2008
hi i am very new to home hosting i have wampserver 2.0 on my computer but i dont no how to put the domain name in to the wampserver can any one give me some help or info please thanks william
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2005
Posts: 611
Reputation: digital-ether will become famous soon enough digital-ether will become famous soon enough 
Rep Power: 5
Solved Threads: 38
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Practically a Master Poster

Re: wampserver 2.0 domain name

  #2  
May 10th, 2008
Originally Posted by billbod50 View Post
hi i am very new to home hosting i have wampserver 2.0 on my computer but i dont no how to put the domain name in to the wampserver can any one give me some help or info please thanks william


You really don't want to use WAMP to host a public website. It's not secure.

That being said, what you'll need is to first make sure Apache allows outside IPs. This is in the http.conf file, that you can access from the WAMP system tray icon.

Somewhere inside the WAMP Apache http.conf file you'll have the following.

    Order Deny,Allow

    Deny from all

    Allow from 127.0.0.1

You'll want to append

Allow from * 

below that if you want everyone to be able to access Apache. I believe you can do this also from WAMP by toggling the online/offline button. If you want just a single IP to access it, then append the IP instead of *.

If you're behind a firewall, you'll have to add a firewall rule allowing the port 80 on your IP to be accessed from outside/anyone.

If you're behind a home router then most likely it will also not allow access from the outside to port 80. What you want, is for any request to port 80 be forwarded by your router to Apache on your machine listening on post 80. To do this you'll have to add a port forwarding rule in your router. This is specific to the router you use.

Now for the domain name:

By default WAMP should be listening on port 80 on the localhost. Assuming all explained above it done, then you should be able to point your browser to your IP as seen from the internet, and your WAMP homepage will show up.

To get your outside IP visit http://whatismyip.com/automation/n09230945.asp

Now you'll just need a domain name. At the domain registrars website, you'll have to change your DNS settings to have your domain point to your IP.

Some domain registers will allow you to create your own nameservers. If this is the case, then you can:
- create nameservers for your domain. eg: ns1.example.com, ns2.example.com
- point both name servers to your IP
- add those two name servers to your domain name's domain name server list.

Some registrars only allow you to add domain name servers to the domain name server list for your domain.
In this case you'll either have to host your own DNS server, or use a service such as http://www.dyndns.com/ etc.
If haven't used http://www.dyndns.com/ or similar, but it would be something like.
- Register, create domain name servers for your domian
- point them to your ip.
- add those name server to your domain name's domian name server list at your domain registrar.


If you could post your domain registrar someone might have first hand experience with it.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 2:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC