Page 1 of 3 123 LastLast
Results 1 to 16 of 42

Thread: Own web server = suicide?

  1. #1
    Senior Member
    Join Date
    Mar 2009
    Posts
    320
    Thanks
    58
    Thanked
    33 times in 30 posts

    Own web server = suicide?

    Hi everyone,
    I saw this guide (http://lifehacker.com/124212/geek-to...ome-web-server) and it looks pretty simple.
    If I follow these instructions, will I probably be hacked quite soon ? Sorry if this is a silly question.

  2. #2
    Splash
    Guest

    Re: Own web server = suicide?

    It rather depends on what you're wanting to achieve - are you wanting a webserver to run local testing of stuff on? If so you needn't expose it to the internet anyways, so you're pretty safe. If you *are* exposing services to the internet then you need to be prepared to keep an eye out for any updates to your OS and server software.

  3. Received thanks from:

    lego batman (25-05-2009)

  4. #3
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: Own web server = suicide?

    No (and yes!)

    If you decide to run your own webserver, you need to be sure to understand the risks and how to minimise them.

    The risks stem from two sources - vulnerabilities in the operating system, and vulnerabilities in the application(s) that you are running - in this case Apache, and apart from following the instructions in the web site you linked to, I would STRONGLY recommend that you buy a book on the Apache (Such as Apache, The definitive Guide - published by O'Reilly) and read the documentation at www.apache.org. You also need to address security in the round, such as firewall/router configuration, because you are by definition going to open up an inbound port (usually 80) for incoming requests.

    Furthermore, it would be better to have a dedicated machine as a webserver, so if it does get hacked, you won't be compromising any personal data.

    There will also be a small admin overhead, checking logs etc to check that it hasn't been subverted, and ensuring that the OS and the application are always up to date.

    I run a webserver (and have done for about 3 years) and (afaik!) it hasn't been hacked, however attempts are made on a daily basis, often running into the hundreds. These attempts are usually probes looking for vulnerabilities.

    So if you are going to do this...

    Use a dedicated machine
    Ensure that the OS is fully patched and up to date
    Read the Apache documentation thoroughly - and get the book I recommended
    If you use a pre-built version of Apache, watch out for updates and apply immediately, same for any other web related applications such as PHP, MySQL and content management systems (such as Wordpress)
    Put aside some time to monitor system logs.

    Have fun!

    (I have assumed that this is going to be a public internet facing machine - if it isn't, and only going to be used on an internal lan, then the risks are minimal, and so the advice above is less relevant, although as a matter of good practice, you should consider applying them anyway)
    Last edited by peterb; 25-05-2009 at 02:20 PM.
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  5. Received thanks from:

    lego batman (25-05-2009)

  6. #4
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    738
    Thanked
    1,609 times in 1,048 posts

    Re: Own web server = suicide?

    WAMP is a pre-configured Apache, MySql and Php server. By default it won't show to the internet, although you can allow it too.

    It has a fairly high use for locally testing stuff, so it's a great starting point.

  7. Received thanks from:

    lego batman (25-05-2009)

  8. #5
    Senior Member
    Join Date
    Mar 2009
    Posts
    320
    Thanks
    58
    Thanked
    33 times in 30 posts

    Re: Own web server = suicide?

    Thanks for the quick responses.
    I intended this just to share my work files which I would keep in a separate folder on my computer, and I think I can follow all your advice peterb apart from getting a dedicated machine.
    Is there a better/more secure way to make these accessible over the internet than apache?
    Would it be safer (or indeed possible) to run it in a virtual machine?

    EDIT: Oh good recommendation Agent! That looks a bit simpler. Do you know if it is any more/less secure compared to plain apache?

  9. #6
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    738
    Thanked
    1,609 times in 1,048 posts

    Re: Own web server = suicide?

    Virtual machine - yup, it's what I do

    You just need to configure the network adaptor to pass through the correct traffic, which is fairly trivial.

  10. #7
    Senior Member
    Join Date
    Mar 2009
    Posts
    320
    Thanks
    58
    Thanked
    33 times in 30 posts

    Re: Own web server = suicide?

    Great - Set up is going to be WAMP in a virtual machine following peterb and Splash' advice.
    Do you use virtualbox Agent?

  11. #8
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    738
    Thanked
    1,609 times in 1,048 posts

    Re: Own web server = suicide?

    I actually use Microsofts own virtual machine, although I haven't really used any others to comment on if its better

    I've never had a problem with it and it's always been fast for me.

  12. #9
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: Own web server = suicide?

    I use VirtualBox, just set the virtual machines' network adaptor to 'bridged' mode, and your virtual web server machine will be exposed to the network as if it's a real machine with it's own NIC.

    Slap on some Linux distro, most of these have a working apache out of the box when you install the apache package. Ubuntu Server (while not the safest server distro) even gives you the option to install a LAMP stack out of the box. All done.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  13. Received thanks from:

    lego batman (25-05-2009)

  14. #10
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Own web server = suicide?

    for the cost of hosting whats the point? The cost of your electricity bill will be more than the cost of dedicated hosting!

    try www.webtapestry.net and see what deals they will do you. I work in the datacenter where their stuff is housed so I know how they run their gear and its pretty tasty!

    Also think about bandwidth, a hosted site will have multi upload links from 100Mb/s to 1Gb/s

    a little taster

    Last edited by Jay; 25-05-2009 at 03:32 PM.
    □ΞVΞ□

  15. Received thanks from:

    lego batman (25-05-2009)

  16. #11
    Master Browser PeteSmith's Avatar
    Join Date
    Aug 2004
    Location
    LV-426
    Posts
    661
    Thanks
    44
    Thanked
    45 times in 42 posts
    • PeteSmith's system
      • Motherboard:
      • ABIT IP35 Pro
      • CPU:
      • Q6600 G0
      • Memory:
      • 4x1GB 8500 Crucial Ballistix
      • Storage:
      • System: Crucial 128GB M4 SSD Storage: 2x500GB WD5000AAKS
      • Graphics card(s):
      • GTX 650
      • PSU:
      • Corsair HX 620
      • Case:
      • Antec P182
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 2407WFP-HC

    Re: Own web server = suicide?

    I would second the opinion of using a dedicated machine as a web server if you want to open the doors to the outside world. Otherwise i think the VM route is a very cost effective simple solution.

    I personally use my NAS box as a webserver, which hosts my blog and a couple of other small websites. I also use it as my development enviroment which works very well. As i only need to forward any incomming traffic to the NAS box i know the other machines on my home network are pretty safe, i log all inbound traffic and run reports which tell me how often it is accessed, the referrer, and the visitors IP. This reporting is very useful if you run your own website, however if you also use the same machine for filesharing the reports soon become very saturated. HTH
    Main PC : Abit IP35-Pro | Q6600 G0 @ 3GHz | 4x1GB Crucial Ballistix 8500 | MSI N460 GTX HAWX | 1 x Crucial M4 128GB SSD | Antec 182 | Corsair HX620 | Dell 2407WFP-HC | Windows 10 x64
    Server : HP MicroServer N40L | 16 GB RAM | 4 X 1 GB Samsung Spinpoint F1 | ESXi 6.0 NAS : Synology DS-408 - 4 x 3GB WD RED HTPC : Acer Revo RL70 | LibreElec

  17. Received thanks from:

    lego batman (25-05-2009)

  18. #12
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: Own web server = suicide?

    Quote Originally Posted by Jay View Post
    for the cost of hosting whats the point? The cost of your electricity bill will be more than the cost of dedicated hosting!

    snip----->
    Because you can! I'm just building a new webserver atm, based on a mini itx setup. Currently drawing 36 watts! (Old one draws about 110W)

    (Fedora 10, Apache, PHP, MySql and Wordpress!)

    More seriously, yes, if you are going to get a lot of traffic, upload speed is an issue, and if you are intending it to be running 24x7, you need to consider additional issues as well - UPS, back-up and so on, but get stuck in - regard it as a self teaching experience!
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  19. #13
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Own web server = suicide?

    well if you are doing it at home (as I have done in the past) an atom based PC is the best way to go.
    □ΞVΞ□

  20. #14
    unknown Georgy291's Avatar
    Join Date
    Jan 2009
    Location
    university of york
    Posts
    1,492
    Thanks
    95
    Thanked
    84 times in 54 posts
    • Georgy291's system
      • Motherboard:
      • ga-p55-ud3
      • CPU:
      • intel i5 750 @4.2
      • Memory:
      • 4gig DDR3 1600mhz 8.8.8
      • Storage:
      • 1tb samsung F3 + 200gig WD caviar black
      • Graphics card(s):
      • 6850 XF
      • PSU:
      • antec 750w something or other
      • Case:
      • antec 300
      • Operating System:
      • windows 7
      • Monitor(s):
      • 23" acer @1080p
      • Internet:
      • 24mb BE @ 22mb

    Re: Own web server = suicide?

    i would buy a cheap hhd enclosure that has got NAS cabability and use it as a FTP server. that way its already passworded and is more or less safe, it would also use less power
    Last edited by Georgy291; 25-05-2009 at 03:42 PM. Reason: added last bit
    Quote Originally Posted by MadduckUK View Post
    now that i think about the word "throttled" in a certain light... its not so far different to strangled really

    our boiler broke so we has no heating or hot water, this is the bloody result ^^

  21. Received thanks from:

    lego batman (25-05-2009)

  22. #15
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: Own web server = suicide?

    Quote Originally Posted by Georgy291 View Post
    i would buy a cheap hhd enclosure that has got NAS cabability and use it as a FTP server. that way its already passworded and is more or less safe, it would also use less power
    FTP is neither particularly secure nor safe - and isn't a web browser!

    Quote Originally Posted by Jay View Post
    well if you are doing it at home (as I have done in the past) an atom based PC is the best way to go.
    Well, it's one way to go (other low power processors are available!) - the criteria really is low power - you don't need a lot of grunt for this type of application in this type of situation. (I ran a web server on a hacked Linksys NSLU2 which worked well until I came to run MySql as part of a CMS system - that really was too much for it!)
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  23. #16
    Senior Member
    Join Date
    Mar 2005
    Posts
    4,944
    Thanks
    171
    Thanked
    387 times in 314 posts
    • badass's system
      • Motherboard:
      • ASUS P8Z77-m pro
      • CPU:
      • Core i5 3570K
      • Memory:
      • 32GB
      • Storage:
      • 1TB Samsung 850 EVO, 2TB WD Green
      • Graphics card(s):
      • Radeon RX 580
      • PSU:
      • Corsair HX520W
      • Case:
      • Silverstone SG02-F
      • Operating System:
      • Windows 10 X64
      • Monitor(s):
      • Del U2311, LG226WTQ
      • Internet:
      • 80/20 FTTC

    Re: Own web server = suicide?

    Quote Originally Posted by peterb View Post
    FTP is neither particularly secure nor safe - and isn't a web browser!
    FTP needs to die. 20 years ago. It is truly rubbish in every imaginable way. And then some.
    "In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship."

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Web server - removing orphan files
    By Raz316 in forum Software
    Replies: 0
    Last Post: 13-02-2009, 10:32 AM
  2. Business Server - Data Backup Methods
    By cptwhite_uk in forum Networking and Broadband
    Replies: 12
    Last Post: 27-02-2008, 12:25 AM
  3. Portable Web Server for Linux
    By Dorza in forum Software
    Replies: 4
    Last Post: 05-07-2007, 02:12 PM
  4. Internal web server woes
    By Raz316 in forum Software
    Replies: 15
    Last Post: 23-06-2005, 04:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •