Results 1 to 10 of 10
  1. #1

    * multi server website

    Hi everyone,
    I want to run my website from 2 servers so my question is what i need to do that?
    Do I need hosting panel and load balance ? note please that i want to run my website completely using my servers so no external service is needed e.g no-ip dns.
    my second question is can the server use load balance software and host panel at the same time??
    Please help me ..
    I'm 3rd uear IT student

  2. #2
    Join Date
    Jan 2014
    Location
    Fort Lauderdale
    Posts
    362
    Your question is better answered if its devided into sections. First if all you are looking to load balance, you need to have something in front of your servers that controls the flow of information to different servers, look into HAProxy. Once you configure that to balance between your servers, you need to sync the content - if its static, I think you can use some form of SSH + Rsync between the servers. If there is a database involved, you will need to look into some type of clustering like galeria (this will need a proxy as well). These are just some starter points. May I ask what the ultimate goal is with this setup?

  3. #3
    hi,
    could you tell us the reason why you want to use 2 servers?
    Regards
    Cache Simple
    CDN provider - Akamai authorized reseller
    Make your site faster, more secure and 100% available
    www.cachesimple.com

  4. #4
    Join Date
    Jul 2012
    Location
    Charlotte, NC, US
    Posts
    513
    Here is something for you on load balancer. http://www.zenloadbalancer.org/web/
    ⓐ➒AlphaNine
    Shared hosting | cPanel/WHM reseller | KVM VPS | Dedicated Servers | SSL | VoIP | Management |
    99.9% uptime | 24/7 Support | Easy Control Panels | Operating Since 2000 |

  5. #5

    The goal

    Quote Originally Posted by helix247 View Post
    Your question is better answered if its devided into sections. First if all you are looking to load balance, you need to have something in front of your servers that controls the flow of information to different servers, look into HAProxy. Once you configure that to balance between your servers, you need to sync the content - if its static, I think you can use some form of SSH + Rsync between the servers. If there is a database involved, you will need to look into some type of clustering like galeria (this will need a proxy as well). These are just some starter points. May I ask what the ultimate goal is with this setup?
    it is a project which is a website for engineering schools in my university so i expect a lot of visitors to this website.
    the website will contain a lectures in pdf format avilable to download and some kind of questions area about lectures.. thinking to use mongodb.
    But, must set up this service without using external services like dns e.g no-ip.
    so any advice please ?

  6. #6

    Because

    Quote Originally Posted by CacheSimple View Post
    hi,
    could you tell us the reason why you want to use 2 servers?
    Regards
    Because I expect a lot visitors to my website

  7. #7
    Join Date
    Jan 2014
    Location
    Fort Lauderdale
    Posts
    362
    I think you will find all that you want to accomplish can be done by choosing the right setup to start. For a single site you have a few options but it depends on your comfort level. (This all assumes you have registered your domain name, and have at least three servers running - either all three in house or two vps somewhere else and one dedicated in house for your main site).

    First - hardware, if the server will host your schools site and not a several websites from different people than I would focus on a simple raid 1 with as much ram as you can afford and the server supports.

    Second - Here is where it gets tricky; You could setup your own DNS servers in house using CPanel DNS and then utilize CPanel itself as your control panel. You will have to spend some time reading through setup guides and actually using their panel (unless you already know how). This will save you some time at the command line. The downside is for the most part you are restricted to using what they give you to enhance your site, unless you go with plugins (which rely on the plugins developers to keep them up to date). Another option and one that I hope you go with if you are comfortable is ISPConfig. Some consider it slightly more difficult, but in my oppinion it is lighter and more flexible. You can also setup your own DNS servers in-house.

    Third - This will be where the magic happens - Depending on how you program your site you can get hundreds of thousands of visits without your server breaking a sweat. You can use Nginx or eevn lighttpd instead of Apache for speed. These two webservers will handle your static content (html,jepg,etc...). You can use PHP-FPM as your PHP handler for dynamic content (php files). Configure a cache of your choice. And you are set.

    I dont wont to imply that any of this is trivial or that you can have it up in a day. What I do hope to imply is that it is not difficult if you patience, use google, and ask questions here.

    Cpanel and Cpanel DNS setup -

    http://docs.cpanel.net/twiki/bin/vie...nGuide/WebHome

    Security -
    http://docs.cpanel.net/twiki/bin/vie...rverChecklists

    http://www.whmsecurity.com/firewalls...erver-firewall

    Ispconfig with instructions for php-fpm-

    http://www.ispconfig.org/page/en/documentation.html

    Ispconfig DNS -

    http://www.ispconfig.org/blog/1/entr...ebian-squeeze/

    Nginx

    For nginx or lighttpd it would depend on your choices above - once you select from above google the best way to install either one.

    Your journey will require alot of reading but these are great starting points. Please excuse spelling and grammar.
    Michael Vinocur
    Enterprise IT Solutions
    Helix Technologies LLC
    http://www.hlxtechnologies.com

  8. #8
    Dear sir,
    A lot thanks for you helping me .. Pleae just another question i'd like you to answer me.. What about load balance? shall i use haproxy or some like??
    maybe my questions sounds very silly for you but i'm specialized in programming not networking so if you may detail your answer as much as you can ... Note please that there are more 50000+ student in all the schools i will provide mt websie to ..

  9. #9

    helix247 many thanks

    Quote Originally Posted by helix247 View Post
    I think you will find all that you want to accomplish can be done by choosing the right setup to start. For a single site you have a few options but it depends on your comfort level. (This all assumes you have registered your domain name, and have at least three servers running - either all three in house or two vps somewhere else and one dedicated in house for your main site).

    First - hardware, if the server will host your schools site and not a several websites from different people than I would focus on a simple raid 1 with as much ram as you can afford and the server supports.

    Second - Here is where it gets tricky; You could setup your own DNS servers in house using CPanel DNS and then utilize CPanel itself as your control panel. You will have to spend some time reading through setup guides and actually using their panel (unless you already know how). This will save you some time at the command line. The downside is for the most part you are restricted to using what they give you to enhance your site, unless you go with plugins (which rely on the plugins developers to keep them up to date). Another option and one that I hope you go with if you are comfortable is ISPConfig. Some consider it slightly more difficult, but in my oppinion it is lighter and more flexible. You can also setup your own DNS servers in-house.

    Third - This will be where the magic happens - Depending on how you program your site you can get hundreds of thousands of visits without your server breaking a sweat. You can use Nginx or eevn lighttpd instead of Apache for speed. These two webservers will handle your static content (html,jepg,etc...). You can use PHP-FPM as your PHP handler for dynamic content (php files). Configure a cache of your choice. And you are set.

    I dont wont to imply that any of this is trivial or that you can have it up in a day. What I do hope to imply is that it is not difficult if you patience, use google, and ask questions here.

    Cpanel and Cpanel DNS setup -

    http://docs.cpanel.net/twiki/bin/vie...nGuide/WebHome

    Security -
    http://docs.cpanel.net/twiki/bin/vie...rverChecklists

    http://www.whmsecurity.com/firewalls...erver-firewall

    Ispconfig with instructions for php-fpm-

    http://www.ispconfig.org/page/en/documentation.html

    Ispconfig DNS -

    http://www.ispconfig.org/blog/1/entr...ebian-squeeze/

    Nginx

    For nginx or lighttpd it would depend on your choices above - once you select from above google the best way to install either one.

    Your journey will require alot of reading but these are great starting points. Please excuse spelling and grammar.
    I decided to use Ispconfig3 and Nginx if that is may help you with answering But what about load balance .... thank you

  10. #10
    Join Date
    Jan 2014
    Location
    Fort Lauderdale
    Posts
    362
    In my opinion adding a proxy will just complicate your setup, as everything still points to your primary server as a point of failure. This is not a cause for alarm, it just means you need to plan accordingly. Example, say you add a proxy. you will need at least two primary servers in order to (load balance the requests). In a good setup, one of those primary servers would need to be located somewhere that does not share power/internet with the other primary server. This is usually solved geographically. But it gets away from your stated goal of having everything in house. The number of people that you want to have this site available for is well within the what a reasonably powerful server configured with the strategy that I have outlined can handle.

    First is that you wont have that many students clicking on a link on your site at the exact same time every second.

    Second, is that because you are allocating a generous amount of RAM to caching, many of your request may never read from the hard drive, and thus will load quickly for your stated user count.


    The ISPConfig Setup page I linked to has several tutorials that already include Nginx as part of setup. If you wanted to use a different OS than the ones linked there, you would google that os + ispconfig + nginx.
    Michael Vinocur
    Enterprise IT Solutions
    Helix Technologies LLC
    http://www.hlxtechnologies.com

Similar Threads

  1. Replies: 0
    Last Post: 03-17-2013, 11:08 PM
  2. Replies: 0
    Last Post: 12-17-2012, 12:48 PM
  3. Replies: 0
    Last Post: 12-13-2012, 01:21 PM
  4. Website Boards for Sale - Free Multi-Forums Website Provider
    By waveweb in forum Other Offers & Requests
    Replies: 3
    Last Post: 12-24-2005, 05:28 AM
  5. Replies: 0
    Last Post: 02-23-2005, 07:44 AM

Tags for this Thread

Posting Permissions

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