Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
05-25-2004, 12:27 AM
|
#151
|
|
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:
|
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.
|
|
|
|
05-25-2004, 02:03 AM
|
#152
|
|
Member
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553
Rep:
|
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
|
|
|
|
05-25-2004, 07:10 AM
|
#153
|
|
Member
Registered: May 2004
Location: Mechanicsburg, PA
Distribution: Mainly Slackware, but test run various different distros.
Posts: 77
Rep:
|
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!).
|
|
|
|
05-25-2004, 12:33 PM
|
#154
|
|
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:
|
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,
|
|
|
|
05-25-2004, 06:52 PM
|
#155
|
|
LQ Newbie
Registered: Jul 2003
Distribution: Slackware-current
Posts: 8
Rep:
|
Great post . ... mods - make this one sticky!
Just wanted to bump this post. Terrific work!!!
|
|
|
|
05-25-2004, 09:52 PM
|
#156
|
|
Member
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139
Rep:
|
I second that... mods please make this a sticky...
|
|
|
|
05-26-2004, 03:20 AM
|
#157
|
|
Member
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241
Rep:
|
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.
|
|
|
|
05-26-2004, 05:28 PM
|
#158
|
|
Member
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139
Rep:
|
bump
|
|
|
|
05-26-2004, 09:48 PM
|
#159
|
|
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:
|
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.
|
|
|
|
05-26-2004, 10:10 PM
|
#160
|
|
Member
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139
Rep:
|
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 10:23 PM.
|
|
|
|
05-27-2004, 12:08 AM
|
#161
|
|
Member
Registered: May 2004
Location: Mechanicsburg, PA
Distribution: Mainly Slackware, but test run various different distros.
Posts: 77
Rep:
|
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.
|
|
|
|
05-27-2004, 03:27 PM
|
#162
|
|
Member
Registered: Apr 2004
Location: Canada
Distribution: OpenBSD 3.6, Slackware 10.1
Posts: 134
Rep:
|
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.
|
|
|
|
05-27-2004, 03:46 PM
|
#163
|
|
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:
|
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.
|
|
|
|
05-27-2004, 06:04 PM
|
#164
|
|
Member
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825
Rep:
|
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!
|
|
|
|
05-27-2004, 09:17 PM
|
#165
|
|
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:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|