iGuest-The ASM Codejunkie
Jul 8 2008, 09:07 PM
RE: Xampp And Wampp Questions
Xampp And Wampp Questions
I installed XAMPP today and I used DynDNS to set up my domain name...
I'll try to explain it step by step, although I haven't worked all the kinks out (I'll explain at the end of the post):
1. Get XAMPP up and running (fairly easy, no real reason to explain here)
2. Open DynDNS in your browser, set up an account, click my services, and then Host Services. Once you do that, click Add Hostname.
3. Type in a name (I.E. ThisIsMyHostname.Subdomain.Com; you most likely won't find a domain for free)
4. I clicked wildcard (I think it has to do with virtual hosts, could be wrong)
5. Click Host with IP Address as your Service Type
6. Now this was the most frustrating part for me: the IP address field. For me, it auto-detected the wrong IP, and I'm fairly certain it is because I am behind a router. My solution was to run the ipconfig DOS command and look at where it says "IP Address."
C:\>ipconfig
7. Once you have the IP and have put that in, save your changes. I don't know about the last option, mail routing, so I just left it unchecked.
Ok, so we are pointing our URL to the computer's IP address. Good. If all goes well, you should have a perfectly functioning web server to put your site on. Of course, in the computer world, you have to assume the worst. :)
So, let's troubleshoot (THESE SOLUTIONS ARE FOR XAMPP ONLY):
If you are having problems with setting a start page (I.E. Index.Html, the first page you want to look at when you type your URL in), go to your C:/xampp/htdocs folder and rename index.Php to something random, index.Php.Xyz. Just make it so index.Php doesn't get read (I believe that running it redirects the site to the setup folder).
After that, you should be able to make everything normally. What if you are behind a router? People won't be able to connect from a computer outside your private network unless you port forward. (http://www.Portforward.Com is a good reference)
(http://www.Apachefriends.Org/en/faq-xampp-windows.Html#xpsp2) provides a list of ports that you will need.
That should be all. Now, my problem is, although I have port forwarded, apparently external connections still time out. I have no idea why (I did port forward a huge range however. Maybe I should port forward each individual port?)
Hopefully this helped a bit, if any. And if I'm wrong on some stuff, correct me, as I just started getting into web dev. (was doing a lot of low level assembly)
-TAC
-reply by The ASM Codejunkie
Comment/Reply (w/o sign-up)