Which is better? A Windows server or Linux server?

Discussion in 'PHP' started by Imozeb, Apr 13, 2010.

  1. #1
    I am looking into more security for my site and someone told me to modify my .htaccess file to only let PHP scripts access my page. I contacted my hosting provider and they said I would have to switch to a Linux server. Is this a good idea? Like what benefits does a Windows server have that Linux doesn't or is Linux just better? And is there anyway I could make it so only my PHP scripts can write files to my server?

    Thanks!

    ~imozeb :)
     
    Imozeb, Apr 13, 2010 IP
  2. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #2
    I only use linux servers. if you are creating php, there is no reason to stay in a windows server. not sure why your hosting provider told you that you NEED to switch to linux, really doesnt make a difference, unless im missing something.
     
    killaklown, Apr 13, 2010 IP
  3. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My hosting provider only provides .htaccess support if I am using Linux servers. But I was wondering if Windows had any advantages because, why have them if their so useless? :confused:
     
    Imozeb, Apr 13, 2010 IP
  4. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #4
    If your developing in asp.net (or another microsoft language) then you would want windows. Other then that, there is really no reason to choose a windows server.
     
    killaklown, Apr 13, 2010 IP
  5. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ok. I'll tell my hosting provider to switch me to Linux.
     
    Imozeb, Apr 13, 2010 IP
  6. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Only reason to use windows is if you are developing on something proprietory; even then there are often ways to achieve the same thing on linux. You are far better off using a linux server, if not for reliability then speed.
     
    lukeg32, Apr 14, 2010 IP
  7. guardian999

    guardian999 Well-Known Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #7
    I choose Linux
     
    guardian999, Apr 14, 2010 IP
  8. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Is there anyway I can modify my htaccess file so only my PHP scripts can write to my sites folders.

    Or are there any pieces of code that I should put in my htaccess file that would make my site more secure?
     
    Imozeb, Apr 14, 2010 IP
  9. alberrambo

    alberrambo Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    window server is easy to use but if u use for security purpose than linux is better
     
    alberrambo, Apr 14, 2010 IP
  10. xnishan

    xnishan Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Apart from all the reasons discussed here why you should prefer using linux servers I've also noticed that sometimes the hosting packages for linux are cheaper than those of windows.
     
    xnishan, Apr 14, 2010 IP
  11. bmal3x

    bmal3x Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    use windows server for developing sites(its easier) then use linux for production sites ;)
     
    Last edited: Apr 14, 2010
    bmal3x, Apr 14, 2010 IP
  12. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #12
    In honesty, I prefer linux servers. You'll find that if you're running PHP, then running windows is a more expensive option, since microsoft hosting will grant you the ability to run ASP, which you've said you don't use. Since you're not managing your own servers, then it won't matter on the complexity of maintaining the OS on the server, so it may be worth a look into the linux options instead, just make sure you're prepared for any server migration if you change hosts
     
    Grit., Apr 14, 2010 IP