LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   This is how I do it all (https://www.linuxquestions.org/questions/slackware-14/this-is-how-i-do-it-all-174447/)

shilo 05-25-2004 12:27 AM

Just finished up the apache section on the web site. You can check it out at http://shilo.is-a-geek.com/slack/apache19.html . Let me know what you think. As always, criticisms, comments, and tips always welcome.

Bebo 05-25-2004 02:03 AM

Hey shilo,

Nice page - as always :) I have some questions, though...

You say that the served files are in /var/www/htdocs. Are you sure about this? Firstly, when I had a web server running (for a very very short time, in which I didn't really had time to get things in order) I put my stuff in /var/www. That might be completely wrong - what do I know - but also, secondly, the directory seems a bit strange: why put the served pages in a dir called htdocs?

(That comment is related to my wondering why you put the guide under shilo.is-a-geek.com/slack/ when you haven't put anything at the "root", shilo.is-a-geek.com/ . But I guess you have your reasons, it's just me thinking too much ;))

The other comment is just a thought from where the [warn] module mod_php4.c is already added, skipping is coming from. (1) Is the AddModule mod_php4.c line necessary? Or (2) are that line and the LoadModule php4_module libexec/apache/libphp4.so line in the correct order?

Cheers

Systematic 05-25-2004 07:10 AM

actually it all depends on how you have your apache configured.. htdocs is the default site root, but you can change that to anything below the www folder. i dont think you can go outside of that folder without creating symlinks to the directory. So yes Bebo, it is possible that your root was /www. apache is a LOT more forgiving when it comes to customizing than IIS.

nice writeup shilo.. great detail on the httpd.conf (which can be one of the first places where things start to go down hill if you set it up wrong!).

shilo 05-25-2004 12:33 PM

Bebo-

Like Systematic said, /var/www/htdocs is the default root. I believe it stands for "HyperText Documents". Also in the /var/www directory is the cgi-bin directory and the icons directory. I believe that these directories exist to save some confusion which might be caused by placing everything in the /var/www directory. I try to keep everything as stock as possible. Makes trouble shooting a lot easier.

As for the directory structure on my site, I have a few projects that I'm working on for my site. I haven't had a chance to make something for the main site yet. In retrospect, the slackware section is the only popular section and I probably should have made it the main site. Oh well, live and learn.

Thanks for the tip on the modules, I'll check it out tonight. If it works, I'll edit the site.

Thanks again,

machinecraig 05-25-2004 06:52 PM

Great post . ... mods - make this one sticky!
 
Just wanted to bump this post. Terrific work!!!

rivang 05-25-2004 09:52 PM

I second that... mods please make this a sticky...

veritas 05-26-2004 03:20 AM

I .. third that idea.

This thread is worthy of a sticky. If not this thread, then a reorganized new thread that pieces the different parts of Shilo's guide one after the other.

rivang 05-26-2004 05:28 PM

bump

shilo 05-26-2004 09:48 PM

Thanks for all of the kind words and the bumps, everyone.

Bebo-

Thanks for the tip on the php module I commented out the AddModule Line and everything seems to be perfect.

If anyone was trying my site yesterday or early today, sorry. I upgraded the firmware on my router and managed to make a mess of things. Everything seems to be running fine, now.

rivang 05-26-2004 10:10 PM

Anyone have any pointers on how you can change the default directory of Apache? For my webserver, I would like to move the default Apache htdocs to /home/htdocs. I have partitioned a rather large /home partition for this purpose. I currently host about 25 - 30 websites so I would like subdirectories for each site under /home/htdocs or /home/companynameweb.

Thanks...

Systematic 05-27-2004 12:08 AM

rivang -- you just have to make a few modifications to your httpd.conf file..

First make a backup of your httpd.conf (just in case!!!)

then from command line:
#pico /dirtree for your install/httpd.conf

Look for the following:

Document Root /usr/local/apache/htdocs (or whatever it happens to be for your system)

change this to:
Document Root /home (im not sure if you can specify a wildcard here if your going to have multiple directories under here)

scroll down and find
<Directory "/usr/local/apache/htdocs">

Change this to whatever you set your Document root as:
<Directory "/home">

ctrl-X and yes to save.. restart your httpd and give it a try...

that should work.. if not reload your httpd.conf.bak file let me know and ill set up mine like this and see if i can get it to work.

blood_omen 05-27-2004 03:27 PM

Shilo:

I was reading the website, and in the 'Going Graphical' section you give a bunch of links to images for the lilo prompt, thank you for puting mine in there, but I notice that the link is not working, you gave this link:
http://www.geocities.com/mctarnet/images/lilo2.bmp which gives the user and unavailable page. I'll suggest to change it to:
http://www.geocities.com/mctarnet/images/ from there the image can be donwloaded.
Great work with the website and everything. I have read from many post that it will be nice to have a printable version in PDF, if you don't mine I could do that, unless another person have already undertaking the job.
Once again grate job with the site.

shilo 05-27-2004 03:46 PM

blood_omen-

Thanks, I'll fix that up tonight. If you want to make a PDF, get it to me and I'll put it on the site. Thanks. That is super helpful.

mcd 05-27-2004 06:04 PM

wow! great guide and great discussion! shilo you're the man! i reinstalled last night, and as soon as i can figure out why my keyboard and mouse won't work in X, I'm going to get started on cleaning things up and tweaking. i'm really looking forward to it!

(and if anyone thinks they can help with my problem, check out my thread in the slackware forum here: http://www.linuxquestions.org/questi...hreadid=186387

keep it up!

shilo 05-27-2004 09:17 PM

rivang-

I just though of an alternate solution to resetting your default root directory. Make a symlink between /home and /var/www. That way, you don't have to mess with configuration files. Probably not the best way to go about it, but I beleive it will work. Also, I believe that wit hthe configuration that I have posted on the site, you can place a file named public_html in a users home folder and that folder can be accessed with http://name_of_your_website/~name_of_the_user . That is, if your websites were individual user websites.


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