Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-21-2010, 06:24 AM   #1
LQ Newbie
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Whats the easiest way to go about setting up a web server on Linux?

Im trying to set up a web server on Linux and I was wondering if there may be any shortcuts available or a simple step process to get me where I need to be in regards to setting up the server.
Old 05-21-2010, 06:30 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Have a look at They have a lot of easy to follow, step by step, copy/paste HowTos there. Just click on the Apache link on the left of the main page and take your pick.

Kind regards,

Old 05-21-2010, 06:40 AM   #3
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
No shortcuts. But there are pre-packaged softwares that contain AMP packages and you can install and run a web server. But it is not advised to use them on production machines. It would depend on your purpose of the server, what configuration you must have.
But it should not be that difficult to get a web server running on CentOS5 or debian. Install CentOS5 and while installing do select apache, mysql, and php so that you have required packages.Thats done.
Old 05-23-2010, 01:59 PM   #4
Registered: May 2010
Location: Illinois
Distribution: Ubuntu 10.04
Posts: 43

Rep: Reputation: 16
Just use the LAMP installation. Just look up LAMP on google. Yes that is in all capitals. That should get your web server up and running in no time.


Last edited by Tinkster; 05-23-2010 at 11:30 PM.
Old 05-23-2010, 02:49 PM   #5
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,107

Rep: Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478
there are not really any "short cuts"
think of it as a CS lab course and the web site is the final exam ( and you MUST ace it )

fallow the examples above and read ther REREAD a few times the documentation for
Apache , PHP , MySql ( and AWstates , phpmyadmin and for your cms -- i like "GeekLog "
Old 05-23-2010, 03:48 PM   #6
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,062

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Originally Posted by sharee View Post
Im trying to set up a web server on Linux...
That's nice, but you don't tell us whether the server will be exposed to the internet (probably will, but there are bad people out there, and if it is, you'd probably better be good at security...may not be quite as severe if you only intend it for internal usage) and whether you are thinking of a high traffic site, or something more moderate (...and therefore fewer servers, and less complexity in architecting the system) and how you intend getting information onto the system (if you intend to use a CMS, that will be a problem all of its own, but it will solve some of your problems for you) and whether you intend to use some kind of paid for hosting (shared or not?)

And were you including website design? Usability? Usability testing? SEO? Analytics?

and I was wondering if there may be any shortcuts available
Oh, yes, there are simple shortcuts, but if you don't know what you are doing you'll almost certainly commit some kind of security blunder (I know because some of the shortcuts bake security blunders into the installation). Is that still what you want?

...or a simple step process to get me where I need to be in regards to setting up the server.
Read a book on the LAMP stack; work out what you want to do in detail. Do some reading on security. Study recent exploits and work out whether you would be vulnerable. Express your workflow in a way that makes sense to the rest of the world, if you want those aspects taken into account.
Old 05-23-2010, 06:02 PM   #7
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
It is hard to know what is meant by 'setting up a web server'. Just setting up a web server can be as simple as starting the httpd service on most distributions. As root:
service httpd start
If you don't get an error message, the web server is probably running.
You can test this by fetching the default Apache index page.
wget localhost
Even if you don't get a page, but instead get an error code like '403 Forbidden', it still tells you the server is running. Having accomplished the lofty goal of starting the server, it bears mentioning that you should do this behind closed doors; ie. on a local LAN unexposed to the wild. You will also want to delve into the server configuration file(s), and set up things like the server name, some security items, perhaps a CGI configuration &/or PHP, etc.

Now, if you really meant 'setting up a web site', then that is a much bigger question, and the answer will take a considerable effort for you to grasp. The complete answer is the subject of many books, and would be much beyond the scope of a forum such as this. There are many, many smaller questions that will come up as you build a web site, and those would be appropriate here.

--- rod.

Last edited by theNbomr; 05-23-2010 at 06:04 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Any way I can use my Linux server as a Windows Network Drive/Web Share? Whats needed? CrewXp Linux - Software 2 07-16-2009 06:25 AM
Whats the Easiest Server app 2 Install? kccoop35 Linux - Newbie 4 02-27-2007 06:48 AM
Setting up Linux Web Server stanleytiew Linux - Newbie 4 04-24-2005 05:44 AM
never tried linux whatsoever whats the easiest distro to learn? xman2007 Linux - Software 36 01-04-2004 02:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 AM.

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