LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-05-2007, 12:29 PM   #1
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 217

Rep: Reputation: 30
apache


Hi all, this is very frustrating to figure out. Im trying to setup UserDir on my apache server so my other users can have pages of their own. But its not working.

I read this page and its not explaining correctly. What ive done so far is the below shown.

First i edited httpd-userdir.conf and replaced some of the config like so.

Code:
UserDir enabled user
UserDir disabled root
But when i open my browser to http://mysite.com/~user I get a forbidden error telling me i cant access it. Can any please explain thoroughly what im doing wrong? Thanx in advance!
 
Old 12-05-2007, 12:37 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
In addition to what you did above, you also need to do
Code:
$chmod 755 /home/$USER
$mkdir /home/$USER/public_html
$chmod 755 /home/$USER/public_html
If you use a Red Hat based distro and have selinux enabled, you may need to do
Code:
#chcon -t httpd_sys_content_t /home/$USER/public_html
 
Old 12-05-2007, 01:29 PM   #3
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 217

Original Poster
Rep: Reputation: 30
Ugh!!!, do i do this as root or as the user? Because i did it as root and nothing is changed as far as i can see.

When i did those chmod commands i noticed inside the file httpd-userdir.conf there was this section.

Code:
#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
The access denied problem was solved, but now its still not working. Does this section i pasted need to be edited? Also, is there a place where i can _read_ about this that actually makes _sense_ ? Thanx in advance!

Last edited by dellthinker; 12-05-2007 at 01:48 PM.
 
Old 12-05-2007, 02:15 PM   #4
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 217

Original Poster
Rep: Reputation: 30
Nevermind, i sorted it out.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache program writes files in the apache group, how can I change? muskiediver Linux - Security 5 01-17-2007 12:27 PM
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration