•
•
•
•
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
![]() |
•
•
•
•
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.1You'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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- How to open a php script (PHP)
Other Threads in the PHP Forum
- Previous Thread: PAGING inside a TABLE
- Next Thread: Deleting A file on the FTP via php script


Linear Mode