How can I turn my Linux box into a web server?

Discussion in 'OT Technology' started by Kyubiz, Apr 2, 2005.

  1. Kyubiz

    Kyubiz New Member

    Joined:
    Sep 25, 2002
    Messages:
    7,226
    Likes Received:
    0
    Location:
    Boston
    I have a Dell PowerEdge server with Fedora Core 3 on it. I already have a couple of domain names that I purchased through my 1and1 account. I'm guessing I would need to set up my router to forward ports to the server. What ports do I need to forward? Do I need any additional software?
     
  2. ledzep73

    ledzep73 New Member

    Joined:
    Feb 28, 2005
    Messages:
    6,868
    Likes Received:
    0
    Location:
    Louisville
    Fedora isn't bad, but go Debian. I think it is easier to use for a web server.
     
  3. Aimless

    Aimless Resident drunkey

    Joined:
    Nov 5, 2001
    Messages:
    2,534
    Likes Received:
    0
    Location:
    Wisconsin
    Assuming your ISP doesn't block it, you should only need to forward port 80.

    For the webserver you'll want to install Apache, but I couldn't even begin to tell you how to do it on Fedora.

    I'll never leave my apt-get.
     
  4. ledzep73

    ledzep73 New Member

    Joined:
    Feb 28, 2005
    Messages:
    6,868
    Likes Received:
    0
    Location:
    Louisville
  5. Aimless

    Aimless Resident drunkey

    Joined:
    Nov 5, 2001
    Messages:
    2,534
    Likes Received:
    0
    Location:
    Wisconsin
  6. Kyubiz

    Kyubiz New Member

    Joined:
    Sep 25, 2002
    Messages:
    7,226
    Likes Received:
    0
    Location:
    Boston
    What about an FTP server?
     
  7. R-Type

    R-Type The Bydo Empire must die!

    Joined:
    Aug 2, 2002
    Messages:
    1,049
    Likes Received:
    0
    Location:
    CT
    I like proftpd, but some guys also use glftpd. I've also seen pure-ftpd used on some systems.
     
  8. ShapeShifterz

    ShapeShifterz Longtime Lurker

    Joined:
    Mar 15, 2000
    Messages:
    183
    Likes Received:
    0
    Location:
    Bay Area, CA
    actually apt-get and RPM go hand in hand.

    As far as the webserver goes, I'd recommend learning to compile apache manually. Further down the road when you want to do some custom stuff, it'll be much easier than trying to get a pre-packaged version to do it.
     
  9. Forbidden

    Forbidden Guest

    To install Apache: yum install httpd

    You might also want to install PHP and MySQL if you want to run some scripts on there

    The default FTP server on FC3 is vsftpd that will probably do the job but there's also proftpd in the Fedora Extras that I prefer because I think it's more flexible and I'm more used to it.

    I think it's a good idea to learn to compile stuff but over the years I've learned that's it's just so much easier and takes way less time to manage your systems to just use prepackaged stuff. Manually compiling stuff should be only used if there's an option you need that's no included in the prepackaged version.

    Also apt-get shouldn't be compared to RPM, that's pretty much like comparing apples to oranges, if you want to compare apt-get to something compare it to Yum at least.
     
  10. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    I think when he says apt-get he probably means dpkg, and he's comparing deb packages to rpm packages. No one can deny that the deb packaging system kicks the shit out of the rpm system, and apt-get kicks the shit out of anything rpm-based.
     
  11. Kyubiz

    Kyubiz New Member

    Joined:
    Sep 25, 2002
    Messages:
    7,226
    Likes Received:
    0
    Location:
    Boston
    Thanks :bowdown: How can I install php and MySQL?
     
  12. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    There should be binaries of them available for Fedora. If not, http://www.php.net and http://www.mysql.org will let you download them :)
     
  13. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    google: LInux Webserver HOWTO
     
  14. Forbidden

    Forbidden Guest

    Easy way: yum install php* mysql*

    Better way: yum list php* mysql*
    and install only the packages you need/want
     
  15. Forbidden

    Forbidden Guest

    To be honest I've never really played with any deb based distro because most of them seem to be BSD style distros and I prefer SysV style distro, so I can't really says anything about deb vs rpm other than I'm familliar with rpm and it has worked well for me so I see no reason to change. Also for people who don't really care what they have in the background and just want to use apt-get, I believe there's a version for FC and probably other rpm based distros.
     
  16. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    Uhm all debian releases use SysV style init scripts.
     
  17. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    That's true. Apt-get is really the best part about debian-based systems.
     
  18. Aimless

    Aimless Resident drunkey

    Joined:
    Nov 5, 2001
    Messages:
    2,534
    Likes Received:
    0
    Location:
    Wisconsin
    :hsugh:
     
  19. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    IMO :dunno:
     
  20. Forbidden

    Forbidden Guest

    Sorry, I thought it was BSD style. I've never played much with Debian, I think I've only installed it once just to see what it looked like and it didn't last for a day.
     

Share This Page