LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-19-2013, 01:09 PM   #1
rewards
Member
 
Registered: Dec 2010
Posts: 135

Rep: Reputation: 0
Question Which Web Server to choose for a website?


Hello all,

I am in a middle putting a web server together on a CentOS machine and would like to know which web server to choose from between Apache, Nginx, CGI and FastCGI? My main concern is to have a fast Web Server that responds to inquiries quick. Does anyone have any suggestions? Thank you all.
 
Old 01-19-2013, 04:37 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
CGI and FastCGI are protocols for executing scripts/programs on a web server, not servers themselves. I personnaly use Apache just because I've learned it fairly well and I know it (never jumped on the Nginx bandwagon). The right choice depends on a lot of questions you haven't answered, such as what is the expected traffic level?, are the pages mostly static or dynamic (using server side scripting)? if the latter, what scripting languages/tools are to be used?

Unless it's a very high traffic or performance critical site, I expect Apache and Nginx to both handle it fine.
 
Old 01-19-2013, 04:55 PM   #3
nobuntu
Member
 
Registered: Mar 2012
Distribution: Debian for server, CrunchBang for everything that's not a server
Posts: 143

Rep: Reputation: 24
Don't forget about lighttpd! I've heard good things about it, although I don't use it much myself. And here's an arstechnica article in praise of Nginx: link.
 
Old 01-19-2013, 09:06 PM   #4
ChooseLife
Member
 
Registered: May 2007
Distribution: Ubuntu, RHEL, Slackware
Posts: 49

Rep: Reputation: 17
Apache will do the job.
 
Old 01-20-2013, 11:57 AM   #5
rewards
Member
 
Registered: Dec 2010
Posts: 135

Original Poster
Rep: Reputation: 0
Thank you for your response. I decided to test the nginx on a local CentOS system and see the difference between Apache and Nginx. This is my first time running nginx and I need help. I noticed the public www on nginx located in /usr/share/nginx/html folder. Here is the message I get when I put 192.168.0.110;

Welcome to nginx on EPEL!

This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.
Website Administrator

This is the default index.html page that is distributed with nginx on EPEL. It is located in /usr/share/nginx/html.

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf

I have my website php script and I want to upload it to the server. What should I do after upload to be able to run the script and install the script? I have looked at the content of this "You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf." and it is confusing for me to understand what needs to be done here. Can anyone help please?

Thank you all

Last edited by rewards; 01-20-2013 at 08:42 PM.
 
Old 01-31-2013, 05:55 PM   #6
acelino
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 10

Rep: Reputation: Disabled
Apache and Nginx is my choice! Fast and reliable web server.

Here are some Tutorials you may follow to tweak you Web Server

<moderated>

Last edited by colucix; 02-01-2013 at 02:15 AM. Reason: Removed "driving traffic to your own web site" link. Not allowed here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS Web Server - Where to Keep Website Files Ascendancy5 Linux - Server 5 11-21-2008 12:39 PM
Need help to choose hardware for Web Server running website based on Linux and Java saharabear Linux - Hardware 1 07-02-2008 07:55 AM
Host website on non-web server ubuntu solarbike Linux - Server 1 03-09-2008 08:40 PM
Unable to access to a website on apache web server bisbane Linux - Networking 3 07-11-2001 09:18 AM
Unable to access to a website on apache web server bisbane General 3 07-10-2001 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration