LinuxQuestions.org
Visit Jeremy's Blog.
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, 07: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, 07: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 07:40 AM   #3
linuxlover.chaitanya
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, 02: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-24-2010 at 12:30 AM.
 
Old 05-23-2010, 03:49 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
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, 04:48 PM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,064

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
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, 07:02 PM   #7
theNbomr
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:
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 07:04 PM.
 
  


Reply


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 07:25 AM
Whats the Easiest Server app 2 Install? kccoop35 Linux - Newbie 4 02-27-2007 07:48 AM
Setting up Linux Web Server stanleytiew Linux - Newbie 4 04-24-2005 06:44 AM
never tried linux whatsoever whats the easiest distro to learn? xman2007 Linux - Software 36 01-04-2004 03:53 PM

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

All times are GMT -5. The time now is 07:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration