How to setup Linux web servers?
Hello,
I want to setup a Linux web server. I am Windows guy so I don’t know anything about Linux. 1. Only one website will be running on that Linux Box. 2. 5,00000 users visit that website every day 3. 5,000 users login into that website every day 4. Restricted users can’t be login into that website 5. Full security (hardware firewall or software firewall) 6. Hacking implementation 7. Need to create one Fail over server (Clustering) for the same server on other Linux server 8. How to do Synchronization of data? 9. Also The website only accessible from INDIA So can anyone help me for the same? Please let me know which Linux OS should I use, about which security steps I should apply on the server, how can I deal with Hacking implementation for the same, how can I create Fail over server (Clustering), is there any tool for data Synchronization, which services I need to running on that server, how to make the web site only accessible from India? Also if 5,00000 users visit that website every day and 5,000 users login into that website every day so which CPU & RAM I should use. I mean what will be the server hardware configuration? Thanks, |
Dont know much about servers...but
a couple distro's for you- Slampp and Slampp Lite ( http://slampp.abangadek.com/wiki/wik...wakka=HomePage ) Slack-Mini-Server ( http://sms.it-ccs.com/ ) |
linus72,
Thanks for your reply. But i don't think that will help me. |
Two of the more popular distributions for servers are CentOS and Opensuse. You can find numerous tutorials for setting up a LAMP server with either.
|
Quote:
A daily or bi-daily rsync between the primary and fail-over servers might be a good idea, too. Just make sure cron is set to run it outside of your peak hours. shorewall is a pretty good frontend for the software firewall (ipchains), and properly configured can make your website only accessible from India. There were a slew of great suggestions for security software when LQ ran its "Best of Year" thing, I'd suggest looking into that thread. fail2ban or similar is pretty much a must for any server, security-wise. As far as restricting users that can log in, that's really more the software you'll be running on top of the web server. I'd need more information regarding what you'll be running on the machine to give advice. Also, apache's pretty darn tough, but you might consider splitting it up between apache for the main request handler and a media server like lighttpd or tux for graphics/css/js. That way your apache process isn't tied up with essentially simple tasks - that is, serving a static file - when it could be handling the programming logic behind the site. This methodology has worked for me for Python, PHP, and Perl sites, but again your mileage may vary depending on your software stack. Honestly, for high traffic sites, I usually prefer actually having a completely separate machine for static files like that, but that's really implementation specific. The biggest thing you'll need to focus on, especially with a site that will likely grow in traffic, is loose coupling. You'll need to be able to add services or servers as quickly and painlessly as possible, and software that's closely tied into other software will be the bane of your existence. That's all I have time for tonight. There's a lot more to it, believe me, but I've tried to cover some of the basics. Hope it helps. Edit: Oh, and learn to use memcached. It rocks. :D |
Thanks Voyvf,
Can you please let me know which OS should I use? I am using mysql and DB size is around 3 GB. This web site is like eBuy got it? |
Hello Yancek,
CentOS is also Linux OS? And can you please help me to find that tutorial? |
CentOS is the free version of Red Hat Ent. Linux. Here are links to two :
http://www.howtoforge.com/centos-5.1...-ftp-ispconfig http://www.mysql-apache-php.com/centos-lamp-server.htm And for Opensuse: http://en.opensuse.org/LAMP http://www.howtoforge.com/perfect-server-opensuse11 |
Hello,
Can anyone please help me more? Thanks, |
Quote:
Quote:
Quote:
For the security bit to work, someone, somewhere, will have to understand the system completely to configure things. Is that you? I think, if it is, you a fair amount of studying to do. Otherwise, you have to hire someone who does know (and that part of this question is a waste time, because you will be hiring someone who knows). Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Hello Salasi,
Thanks for your reply, 4. Restricted users can’t be login into that website I mean that if the users don’t have the login details to login into that website even after that some how if users will manage to login into that website then how can I stop them for the same? 5. Full security (hardware firewall or software firewall) Can you please let me know some Application firewall name along with user guide which can work on Linux? 7. Need to create one Fail over server (Clustering) for the same server on other Linux server Can you please help me to create this Fail over server? Like I just want to understand the stricture of my Fail over server logically. Please tell me the steps and some logic things. 8. How to do Synchronization of data? Mysql DB size is around 3 GB and Web data size is around 4 GB and we update oure website every day may be in DB or may be on Web data. Please let me know these things. Thanks, |
Hello,
Thanks everyone for helping me. Thanks yancek, Your last reply was useful for me. |
Hello,
Thanks everyone for helping me. Thanks yancek, Your last reply was useful for me. |
Quote:
Quote:
Quote:
|
Quote:
If you are actually asking either how people log in or what a log in is, I think there are bigger problems than I can deal with here. Quote:
Systems architecture makes a big difference to which problems you have to solve at a detail level; this is engineering and you have to make decisions in the light of what problems you are prepared to solve; discussing the system in this patchy and inadequately defined way, stores up problems for the future. Quote:
Quote:
What happens if you have a worst-case data loss (ie, after whatever the sync time minus a short period)? Is it a minor inconvenience, or do you go bankrupt? Do you lose vital, unreconstructable, information? do all of your users leave? Quote:
|
All times are GMT -5. The time now is 10:10 AM. |