LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-21-2010, 06:24 AM   #1
sharee
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
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at http://www.howtoforge.com. 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,

Eric
 
Old 05-21-2010, 06:40 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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
jscherer92
Member
 
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.

Justin

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,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 "
http://www.geeklog.net/)
 
Old 05-23-2010, 03:48 PM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
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?

Quote:
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?

Quote:
...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
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
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:
Code:
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.
Code:
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 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