LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-25-2004, 01:27 AM   #151
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Original Poster
Rep: Reputation: 49

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.
 
Old 05-25-2004, 03:03 AM   #152
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 30
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
 
Old 05-25-2004, 08:10 AM   #153
Systematic
Member
 
Registered: May 2004
Location: Mechanicsburg, PA
Distribution: Mainly Slackware, but test run various different distros.
Posts: 77

Rep: Reputation: 15
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!).
 
Old 05-25-2004, 01:33 PM   #154
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Original Poster
Rep: Reputation: 49
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,
 
Old 05-25-2004, 07:52 PM   #155
machinecraig
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware-current
Posts: 8

Rep: Reputation: 0
Thumbs up Great post . ... mods - make this one sticky!

Just wanted to bump this post. Terrific work!!!
 
Old 05-25-2004, 10:52 PM   #156
rivang
Member
 
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139

Rep: Reputation: 15
I second that... mods please make this a sticky...
 
Old 05-26-2004, 04:20 AM   #157
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Rep: Reputation: 30
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.
 
Old 05-26-2004, 06:28 PM   #158
rivang
Member
 
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139

Rep: Reputation: 15
bump
 
Old 05-26-2004, 10:48 PM   #159
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Original Poster
Rep: Reputation: 49
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.
 
Old 05-26-2004, 11:10 PM   #160
rivang
Member
 
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139

Rep: Reputation: 15
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...

Last edited by rivang; 05-26-2004 at 11:23 PM.
 
Old 05-27-2004, 01:08 AM   #161
Systematic
Member
 
Registered: May 2004
Location: Mechanicsburg, PA
Distribution: Mainly Slackware, but test run various different distros.
Posts: 77

Rep: Reputation: 15
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.
 
Old 05-27-2004, 04:27 PM   #162
blood_omen
Member
 
Registered: Apr 2004
Location: Canada
Distribution: OpenBSD 3.6, Slackware 10.1
Posts: 134

Rep: Reputation: 15
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.
 
Old 05-27-2004, 04:46 PM   #163
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Original Poster
Rep: Reputation: 49
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.
 
Old 05-27-2004, 07:04 PM   #164
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
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!
 
Old 05-27-2004, 10:17 PM   #165
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Original Poster
Rep: Reputation: 49
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.
 
  


Reply

Tags
kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration