Click to See Complete Forum and Search --> : Apache n00b


BeAvE
01-21-2003, 02:31 PM
Ok guys, I installed Apache 1.3.26 on my Mandrake 9.0 box yesterday. I'm trying to setup a test server for a MySQL/PHP webpage I'm building for a class. All seems to be well and good as when I type in that machine's IP on my Windows box the little default Apahe page pops up.

The only problem is I cannot do anything else! I can't looka at any other pages! I've been searching the net looking for ways to setup my own pages on this to no avail. I tried to follow the walkthrough here http://www.linuxplanet.com/linuxplanet/tutorials/212/2/
but after creating a usr/jason/public_html/ directory I cannot access it from my windows machine. Also I cannot find the http.conf file (even using Konqueror's find) to locate the DOCUMENTROOT attribute. I'm kinda stumped here so if anyone has any advice or sites for me to look at I would be very appreciative.

Thanks,

ferreter
01-21-2003, 02:41 PM
Try looking for httpd.conf for information on where the default location for publishing web content is. I think it's usually the /home/<username> area but I'm just getting started with apache myself, also the version you are using I think has a vulnerability which allows people to kill processes on your machine...I think. :)

chris.albright
01-21-2003, 06:57 PM
You'll want to check your httpd.conf file for the DocumentRoot directive. That's the directory that html goes by default. It can be changed. Here is the link to the apache docs for this directive. This is an interesting place to browse btw. Good luck! ;)

BeAvE
01-21-2003, 09:13 PM
OkI found all that stuff. I don't seem to have access to the /var/www/html unless I login as root. Do I have to login as root to update my webpages? That seems a bit excessive so I'm thinking there's a way to have full access to that dir without logout/login. How would I go about doing this? Because I guess it really doesn't matter where the page is located, so long as I can update it.

Thanks again.

BeAvE
01-21-2003, 10:27 PM
Thanks for all the quick help guys. That is why I love the Linux community. I just changed the permissions for that directory and now I can update it as I wish.

Thanks again.