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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
So, I'm fairly inexperienced when it comes to linux, I have had minimal time working with any of the distros... anyways I have Mandrake 10 installed on my computer.
what I would like to accomplish is to get it set up to serve web pages on my own computer (and maybe to an other computer on my LAN) with HTML and PHP and CGI, as well as mysql database stuff. I want to have basically a working backup of sites that I have on a web host.
So I was hopping that some one could suggest a how to or other guide to me that I could follow, and hopefully understand, that would guide me though the process of making sure that I have the Right RPMs installed on my system, configuring Apache, creating virtual Hosts and creating mysql and berkeley databases to go along with them. And then figuring out how to access the sites. I really don't care if it's name based virtual servers or something else, but I need an easy way to access them as well as having the computer serve up pages, render php, excitue cgi, etc...
I had accomplished some of this before with Red hat, but that was on my fiance's computer and she went back to the dark side (windows). I had set up a name based virtual server and I think I was accessing it, but it wouldn't excute CGI and the like. But Redhat had some automagic configuration utilities to help me get all that setup, and I can't find anything of the sort here in mandrake. Thanks for your time and help.
I've looked at this post a couple times and no one has answered, so at least I will tell you this, what you want to do is quite an endeavor. Probably more than someone would write in the forums. As far as apache, most of the rpms have CGI compiled in and it works by default if you populate the /var/www/cgi-bin with your cgi scripts, virtual hosting is where this all gets tricky, there are many methods of doing it. Personally, I do it all with rewrites so I compile in mod_vhost_alias into apache, its a mass virtual hosting module. This usually is not compiled in to stock rpm's from my experience. Hence, you would most likely have to compile from source to obtain your objective, theres a great tutuorial on it here --> http://dan.drydog.com/apache2php.html this will also guide you through compiling and installing php. For virtual hosting I would strongly suggest adding --with-vhost-alias to his configure line.
MySql can generally be installed relatively painlessly from rpm's gotten from http://mysql.com And if you are going to host multiple sites you will probably want to host your own DNS, so look into BIND or the like.
I hope this helps some, it was just painful to look at your post knowing I know how to do it but I don't have like 2 days to write a tutorial.
Good luck to you, all the info is on the net if you dig for it, thats how I learned.
Based on what you've described, what you want to set up is a "LAMP" system - Linux, Apache, MySQL, and PHP. Doing an online search for "LAMP installation tutorial" should help get you started.
I've been getting into this myself lately, and just like linux_terror already mentioned, the scope of this topic is pretty extensive, and would probably be a little too broad to cover in a post. My best suggestion would be to check out some of the results from a LAMP search, then post back with specific questions along the way. Good luck with it. Once you get things up and running, it's really pretty cool. -- J.W.
Thanks Linux_terror and J.W. I really apprechate your help. I figured it wouldn't be too easy, and I've got some time to work on it. I'm sure I'll be back to post with specific questions along the way, but I really apprechate have a term to search for - LAMP I never would have figured that one out on my own. Thanks again