LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make a sigguestion please (https://www.linuxquestions.org/questions/linux-newbie-8/make-a-sigguestion-please-256673/)

matttail 11-18-2004 10:47 PM

make a sigguestion please
 
Hi!

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.

-Matttail
:newbie:

linux_terror 11-19-2004 02:37 AM

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.

linux_terror

DertyolBA$HTARD 11-19-2004 07:31 AM

Hehe automagical, I like that.

J.W. 11-19-2004 01:42 PM

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.

matttail 11-19-2004 04:11 PM

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

-Matttail

linux_terror 11-19-2004 05:39 PM

No problem mattail, good luck to ya and yes, post with specific problems and we can be much more help to ya.

linux_terror


All times are GMT -5. The time now is 03:20 AM.