Whats the easiest way to go about setting up a web server on Linux?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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/)
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.