How to create run OWN Web Server ? ( only for Commercial use )

Discussion in 'Site & Server Administration' started by ankur0101, Oct 6, 2008.

  1. #1
    How can make a webserver for commercial use ??

    I have following requirements ::

    Pentium 4 3.0 GHz PC with 1 gb ram
    160 GB HDD
    GBPS Lan card
    XAMPP Software
    cPanel/WHM
    Fedora OS
    Dedicated IP
    diesel backup generator
    DNS Software

    Leased Line >> http://www.bsnl.co.in/service/mlln.htm
    is this essential


    is there anything else is remaining ?
    Anyone can share your ideas here.


    Thank You
     
    ankur0101, Oct 6, 2008 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    If you want to offer shared hosting then what u have is enough to start
     
    Bohra, Oct 6, 2008 IP
  3. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    which is the cheapest Firewall is available ?

    I have got the Dedicated ip from my ISP.
     
    ankur0101, Dec 1, 2008 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    ull use BSNL to offer this ??? are u sure u have good enough speed
     
    Bohra, Dec 1, 2008 IP
  5. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I got this dedicated ip from different ISP for Rs.2500/ year
     
    ankur0101, Dec 1, 2008 IP
  6. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #6
    dont use xampp which is not good security wise. Install LAMP (linux+apache+mysql+php). google it
     
    olddocks, Dec 2, 2008 IP
  7. JenniP

    JenniP Peon

    Messages:
    250
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Is there a reason for xampp? You may be better off installing the components separately rather than a package as sometimes these easy to install one stop shops hide the complexity of a package that as a web host you will need to know about. Also you may want to consider using CentOS rather than Fedora, as CentOS is basically Red Hat Enterprise, is a more server orientated version of Linux than Fedora.

    Also can you get Co-location rather than getting everything yourself, not sure what its like in India, but here in the UK, renting rackspace and putting your own servers in, tends to be easier as the data centre tends to have big pipes, backup generators etc already in place.

    If you do have to have it all done your self, some kind of dedicated line is essential yes.

    Would say the server you've speced is under powered though (Says the person who runs all their sites on an old dual P3) would certainly recommend dual processor though, also what kind of redundancy will you have?

    Do you have hotswap RAID drives, so a hard drive can fail and the system will carry on, and with hotswap you can change it out without taking the system down. If so do you have at least 1 spare drive.

    Do you have dual power supplies so if one fails the server keeps on going etc.

    Do you have a backup device (Such as tape or off site) so if everything does fail and at some point it will you can rebuild quickly.

    Do you actually test said backups, a backup that wont restore is no use at all.

    If you going to spend a small fortune doing this you may as well do it right first time.

    You may be able to get away without a hardware firewall, although its not really recommended, so you will need a hardware firewall, Checkpoint tends to be popular for commerical use, or you may be able to get away with a open source Linux one such as Smoothwall or IP Cop.

    Jen
     
    JenniP, Dec 2, 2008 IP
  8. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thankx JennIP
    ,
    Well
    Now i want to do this for my educational purpose.
    I know rackspace, but they are very expensive
    I just want to know how the web hosting concept runs in reality.
    Thats why i want to have my own web server not for "Commercial " use but for Personal or you can say Educational Use.

    Whats the next procedure ?
    I have Netgear WGR 614 v9 wifi router ....
    Internet line is connected to router and then goes to my PC

    What changes i have to do ?
    I already have this subdomain pointed at my PC, but god knows why, its not working

    ankur0101.homelinux.com
     
    ankur0101, Dec 2, 2008 IP
  9. JenniP

    JenniP Peon

    Messages:
    250
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Ahhh your original post said commerical use.

    Right makes things easier, so if you just want to see how everything works, you can do it all very easily.

    You can skip the static IP, and use a service like EveryDNS to give manage your DNS, so you can point any of your domains to your dynamic internet IP and put a piece of software on your server to update the DNS every time your dynamic IP changes.

    You can use any internet source, IE ADSL however some ISPs block port 80 (Needed to run web servers).

    The Netgear router should be fine, I used one for ages when running webservers at home.

    So what I do is first get it working internally (May need to add entries to your host file), once that works, get the external parts working.

    A few things you may need to check

    1) Have you forwarded port 80 on your router to the INTERNAL ip of your server? I would imagine your running NAT internally giving your server an IP address of 10.something or 192.168.something, you need to tell your router to route traffic for port 80 to a machine on your internal network.

    2) You may not be able to access your server using its external name, IE ankur0101.homelinux.com may not work locally but may work remotely (Just tried it and it doesnt at the moment)

    3) Ensure the external IP of your router is the same as entry in DNS.

    The whole process isnt difficult, but does have loads of little things that can trip you up and have you tearing your hair out for ages.

    Jen
     
    JenniP, Dec 2, 2008 IP
  10. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Yes.i have done whatever you told.
    And its working FINE


    I am in Mumbai india
    I saw ankur0101.homelinux.com from USA proxy server IE youhide

    Thank you sir, thank you very much :):):)

    But i dont have my own DNS for this sub domain, i am using www.dyndns.com service.

    What i have to do if i want my own domain like example.com pointed at my PC with my own name servers like dns1.example.com and dns2.example.com
     
    ankur0101, Dec 2, 2008 IP
  11. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I dont have Hardware firewall, so in case what i have to do to secure my PC ?
     
    ankur0101, Dec 2, 2008 IP
  12. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I dont have Hardware firewall, so in case what i have to do to secure my PC ?
    I have paid Kaspersky antivirus 2009
     
    ankur0101, Dec 2, 2008 IP
  13. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I am also using XAMPP
     
    ankur0101, Dec 2, 2008 IP
  14. JenniP

    JenniP Peon

    Messages:
    250
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Right I see you are using Windows rather than Linux in your original post.

    Your router as long as only port 80 is open will be enough firewall, but is always a good idea to run some kind of remote port scan, although leaving the windows one on or any other one you have installed will be fine.

    Just beware, your now letting the world have access to your PC, no matter how secure your webserver software is hackers may still find an way through, then they have access to your whole machine, so be careful storing personal items on the same PC as a public webserver.

    Dyndns will be fine, its a great service and I still use it for some of my domains, EveryDns does the same thing just free.

    As for running your own DNS in the future, you can either use DynDns or something like EveryDns, use them as the nameserver and to run your DNS, its just hassle you don't need.

    Glad its all working for you though.

    Jen
     
    JenniP, Dec 3, 2008 IP
  15. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    What about bandwidth ?
    I am having internet speed of 256kbps.
    Did you open my link ? Please do so ...
    Please tell me how much time it takes to open page at your place ...
     
    ankur0101, Dec 3, 2008 IP
  16. JenniP

    JenniP Peon

    Messages:
    250
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Actually it wasn't bad at all, considering its coming all the way over to the UK.

    You may want to look at

    http://ankur0101.homelinux.com/security/index.php

    Its showing a few things you may want to be aware of.

    As for the bandwidth you may want to enable HTTP compression (It may already be so, but my usual checker cant see your page).

    Jen
     
    JenniP, Dec 3, 2008 IP
  17. ankur0101

    ankur0101 Peon

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Thank you ...
     
    ankur0101, Dec 4, 2008 IP