Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-15-2004, 02:04 AM
|
#1
|
Member
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 41
Rep:
|
apache config.
Howdy,
I'm trying to configure my apache webserver.
Does anyone know what I need to do to allow the httpd to view users directories?
(i.e. the contence of "http://192.168.0.38/~drkfir5/bits-n-bobs/" or in reality "/home/drkfir5/public_html/bits-n-bobs/")
Along the same lines, how about non-user directories? (i.e. "/scratch/"?)
Any help would be appriciated.
P.S.
I RTFM but I'm not experianced at apache to understand half of it.
|
|
|
02-15-2004, 06:45 AM
|
#2
|
LQ Newbie
Registered: Feb 2004
Distribution: Fedora Core 3 , Knoppix 3.7 re-hackked, Kanotix, Ubuntu, Debian
Posts: 6
Rep:
|
Hello, this is my first post at this forum, and I'm not an expert in Linux yet, but I hope I can help.
change group the home user directory to Apache (chgrp -Rv apache /home/user) and add execute to the public_html (chmod -v +x /home/user/public_html).
So did I, it works! :-)
|
|
|
02-15-2004, 07:03 AM
|
#3
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
You also need to make sure Apache is aware of the user's HTML directories:
Code:
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
...and
Code:
<Directory /home/*/public_html>
AllowOverride All
Options MultiViews -Indexes Includes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Want personal cgi directories as well?
Code:
<Directory /home/*/public_html/cgi-bin>
Options +ExecCGI -Includes -Indexes
SetHandler cgi-script
</Directory>
Håkan
|
|
|
02-15-2004, 05:19 PM
|
#4
|
LQ Newbie
Registered: Feb 2004
Distribution: SELinux
Posts: 2
Rep:
|
Also make sure that the files themselves are world readable.
|
|
|
02-20-2004, 12:04 AM
|
#5
|
Member
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 41
Original Poster
Rep:
|
swobodin, couldn't I just "chmod 777 /home/drkfir5" instead of changing the ownership of the directory? Because if I change ownership then I won't be able to write to the sector (unless it is changed to 777).
hw-tph, is there anywhere in particular I need to place the above code?
|
|
|
02-20-2004, 07:25 AM
|
#6
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
I like having a group to which I can add users to give them write access to the sitewide HTML directories (as opposed to their ~/public_html dirs). That way it's pretty easy to control who can do what.
Håkan
|
|
|
02-27-2004, 07:57 PM
|
#7
|
LQ Newbie
Registered: Feb 2004
Posts: 16
Rep:
|
Hey hw-tph
How do you create such a group, that can be able to write to assigned directories. for HTML file ect..
|
|
|
03-01-2004, 01:16 AM
|
#8
|
Member
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 41
Original Poster
Rep:
|
try vigrp and add the group, making sure to use a diffrent group number.
If you did 'man -k group' I'm sure it would give you a help page on how to do it.
|
|
|
03-01-2004, 03:51 AM
|
#9
|
Member
Registered: Jul 2003
Location: London
Posts: 548
Rep:
|
For the apache config section, it should already be written in your httpd.conf file, just commented out. Do a quick search for "public_html", and you'll find it.
|
|
|
10-25-2004, 02:05 AM
|
#10
|
Member
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 41
Original Poster
Rep:
|
OK. It's time to revist this problem. Only different.
How can I set it up so that people can view the contence of my home directory?
Nvm. I figured it out.
Last edited by drkfir5; 10-27-2004 at 10:46 PM.
|
|
|
All times are GMT -5. The time now is 02:18 AM.
|
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
|
|