My Own Webserver

Discussion in 'Hardware' started by mPK, Dec 16, 2005.

  1. mPK

    mPK Private First Class

    i have been looking around and have decided i want to try host my own website. i have downloaded KF Web Server. I need the site to be PHP compatible so i installed PHP 5.1.1.

    Anyone know how to use this program and how to get my site up and running... at first i just gonna load a small site just to test its working, then i will try getting a bigger site.

    I have also tried to download Apache2Triad. the download stops each time at about 75%... doesn't go above 80% and i have tried about 3 or 4 times now, from different servers as well. any thoughts...
     
  2. Colemanguy

    Colemanguy MajorGeek

    Is this an internal only website, or a public internet website, honstatly if its a public internet site, just pay some on who specializes in webhosting, I http://www.dreamhost.com.
     
  3. mPK

    mPK Private First Class

    it would be available to everyone. but i would rather learn to host myself. thanks
     
  4. Colemanguy

    Colemanguy MajorGeek

    Ok i totaly agree with you its a good idea, but you need to have a static ip, for public hosting, not to mention the risks of hosting a webserver in your own house. Also a business class connection, which your providor would probably cost more then you want to pay. Probably a good solution is to have a home webserver that you use to test and play with, and an hosted website for the public.
     
  5. mPK

    mPK Private First Class

    well its not gonna be a big site. just got like a few pics and some notes. nothing like huge forums or anything. this is for learning purposes only. i already got an alright connection as well. the site won't recieve much traffic either..
     
  6. Colemanguy

    Colemanguy MajorGeek

    Still need static ip, which costs money. Also most isps are friendly and block port 80 from home users, whats your isp. And when I get home i will send you a howto host from home guide.
     
  7. goldfish

    goldfish Lt. Sushi.DC

    Well, actually, dyndns negates the need for a static IP, so long as you don't mind somerandomname.dyndns.com or somthing like that as your URL.

    Blocking port 80 isn't too much of a problem, but it will make your URL a bit more complicated. (i.e. somerandomname.dyndns.org:8080)

    Now, what OS are you running on the machine you want to host from? I'm pretty sure you could get Apache and PHP running on it fairly easily (probably even MySQL if you wanted). You'd learn a lot more about hosting if you learnt how to configure that yourself.

    Have a look: http://www.webmasterstop.com/48.html

    However, if you want to go down the automated route, WAMP seems to do a good job : http://www.wampserver.com/en/index.php

    A while ago I wrote about setting up my own server at home as a guide. I actually don't run this setup any more, I run a Debian box with Apache2, PHP 5 and a database thats quite obscure ;)
    http://www.goldfishsbowl.co.uk/?p=61
     
  8. Mada_Milty

    Mada_Milty MajorGeek

    Apache's port for windows has a HUGE bug, that nobody even at Majorgeeks knew how to resolve. If you install it, DON'T uninstall it if you hope to get it re-installed. The first install will tie up a socket address and just won't free it, preventing you from installing again. (maybe a new OS install would fix, but NOT worth it)

    However, when you can avoid that scenario, Apache is GREAT. It DOES support sql (I've had it installed, at least). Just a recommendation though, as soon as you install, back up your httpd.conf file. Heh, I didn't and that's why I ended up uninstalling.

    I don't know what this Triad shtuff you were trying to d/l was, but this is the windows installer download. It worked for me. If it doesn't for you, then I would imagine you have something that needs to be resolved.
     
  9. goldfish

    goldfish Lt. Sushi.DC

    Are you sure that's not because the service was still running? That'd be the fault of the uninstaller in that case. In any case, to resolve it all you need to do is end the apache.exe process. When you shut down Windows doesn't remember any of the previous sockets. It's entirely impossible for an application to tie up a port permenantly unless it's running at some point during that session (i.e. at startup).

    And besides, MG isn't the center for all webserver knowlege for the entire universe ;) just because we don't know doesn't mean it's undiscovered. ;)
     
  10. Mada_Milty

    Mada_Milty MajorGeek

    Heh, you're right on that last point, but no... it wasn't apache still running. Nor was it something tying up port 80 when I tried to re-install. Don't take it as a knock to MG, though. Not my intention at all. Apache's own help forum couldn't resolve this problem for the million other people having the same problem.
     
  11. goldfish

    goldfish Lt. Sushi.DC

    Ah, I see. I've seen a lot of people have the problem with the service still running. I'll have to look into that bug then.... not that I run any apache servers on Windows :p .... sounds like a winsock problem of some sort from some quick research.

    You got a link to any specific thread for reference?
     
  12. Colemanguy

    Colemanguy MajorGeek

    I still would like to know what isp you have.
     
  13. mPK

    mPK Private First Class

    well i live in africa so you probably will not know the ISP but for interests sake i use coppernet.

    I am running Windows XP Home SP2
     
  14. Colemanguy

    Colemanguy MajorGeek

    Well i was gonna look on your isps homepage, but from some reason (in the us) i can't reach what appears to be there homepage. Anyhow what I was looking for is a terms of use agreement, which would say where or not your allowed to host a server on your connection.
     
  15. mPK

    mPK Private First Class

  16. goldfish

    goldfish Lt. Sushi.DC

    Looks like you're not allowed to transmit live audio or video - so you can't use skype - but it doesn't say anything about not running web servers. Although, is this a dialup connection you're going to be using :eek:
     
  17. mPK

    mPK Private First Class

    no... i have a radio link, permanent.
     
  18. Colemanguy

    Colemanguy MajorGeek

    Whats your up/down.
     
  19. mPK

    mPK Private First Class

    its the 64kbps connection. but as i said, there will be like hardly any traffic and i won't be hosting large amounts of data. if i want i can upgrade to a 512kbps connection and host more, but right now i don't feel the need to make a huge website. just for knowledge sake and experimenting right now...
     
  20. Mada_Milty

    Mada_Milty MajorGeek

    This is my original request for support on Major Geeks.

    This is the Apache help forum that I spoke of. (After I searched for the problem I was having)
     
  21. mPK

    mPK Private First Class

    well heres the deal. I tried downloading the file you linked me Mada_Milty. This one. I get to about 96% each time i try and it stops and says contacting host/getting file info. it has yet to go above 96% and it has done this same thing at other percentages. like 75% 87% and a lot more. its not the link. because i have tried from a different site, here and a few other places.

    the download will not go above 96% (that is the highest i have gotten to after about 7 or 8 tries)... I am able to download other files though, for example i downloaded the new nVidia driver, 81.95. I downloaded a new audio driver. a new chipset driver. a new desktop theme/skin, some other attachments on emails and a lot more. I have absolutely no idea as to why its not working. I have tried using the download utilities in opera 8.5. the default windows download tool from IE. i even installed Star downloader and tried that. still no luck...
     
  22. Adrynalyne

    Adrynalyne Guest

    I downloaded it fine. Something is up with either your ISP or computer.

    Checked for spyware lately?

    Cleared the cache?
     
  23. mPK

    mPK Private First Class

    i reckon it must be my ISP. i cleared the cache. checked hijackthis nothin, and then tried again. still same problem.
     
  24. mPK

    mPK Private First Class

    woot. it downloaded finally. i just left it in the background and it just finished. :D. so now i did the 127.0.0.1 item and it said its installed correctly. now what?
     
  25. mPK

    mPK Private First Class

    don't all reply at once...
     
  26. pcchap

    pcchap Private E-2

    Try Easyphp it works well..it runs portals like Mambo,Guppy,etc..works on most windows flavours..including w98
     
  27. goldfish

    goldfish Lt. Sushi.DC

    Check PHP was installed correctly.

    save this to a file called index.php
    PHP:
    <?php 
    phpinfo
    ();
    ?>
    Then navigate to that page, you should get a bunch of stuff output from PHP about what's installed. Make sure it's loading the appropriate modules for accessing your DB server.

    Then you need to check out the DB you're using - I can't tell you how to do that yet because I don't know what DB server you're using.

    Once you know everything is working, you're good to go :D
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds