How to setup a public web server on CentOS 6?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfaisalwarraich
    New Member
    • Oct 2007
    • 194

    How to setup a public web server on CentOS 6?

    Hi everyone,

    I have installed CentOS6(64 bit) at my LAN network. I plugged my network cable into the CPU and then i assigned a LAN IP and GATEWAY address.

    It is working fine and I can SSH through network to this computer and I can browse internet at this computer.

    My task is to make this computer as Web Server so that i can give IP address to my clients so that they can view my local sites from internet.

    I have a static IP (from my ISP). How i can make it a live webserver?

    I have installed apache,php,mysq l at this computer. Please guide me how i can make it live to my clients. This will serve as Staging Server. Please guide me as how I can achieve this.

    Thanking you.

    Regards

    Faisal
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    To do this right is going to require a significant amount of work and research.

    I would recommend ensuring your network has a DMZ. The DMZ is a place to put devices that touch the internet (like web servers) so that if they do get compromised, they don't affect your PC/home/office systems. This is usually separated from your LAN by a firewall.

    From there, decide what hardware you would like your web server to run on and set that up. You already decided on OS, so you can decide what server software you'd like to use. I'd suggest Apache as it's got a LOT of documentation. Depending on how much you want to configure it, you can add things like MySQL, PHP, etc...

    Then make sure you can reach your web server locally, and from the internet.

    Comment

    • kevin11phi
      New Member
      • Oct 2011
      • 7

      #3
      Change the details within your /etc/httpd/conf/httpd.conf

      Within there are several configuration options which allow you to assign a static ip to APACHE as well as opening the server to someone outside of your network. Also you need to open port 80 (apache's port) [follow this link.

      Comment

      Working...