LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2002, 05:54 PM   #1
aeshley
LQ Newbie
 
Registered: Dec 2001
Location: Australia
Distribution: Red Hat 7.3
Posts: 27

Rep: Reputation: 15
apache UserDir public_html problem


Hi

This is a simple problem which i am sure will have a simple answer.

I am tring to set a user directory with web content on my linux web server. When i enter the url i get:
Forbidden
You don't have permission to access /~ashley on this server.

Under the httpd.conf file i have the line:
UserDir public_html

The permissions on the index.html file are world readable.
I can access web files within /var/www/html no probs too.

Any help much appreciated. Thanks.

Ashley
 
Old 11-28-2004, 03:20 PM   #2
eastern_strider
LQ Newbie
 
Registered: Nov 2004
Location: Orlando
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0
I have the same problem..
Does anyone have an answer?

Thanks..
 
Old 11-28-2004, 03:52 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
1. Does directory 'ashley' have 755 on it?
2. Did user ashley create the 'public_html' folder?
3. in httpd.conf, userdir_module is loaded correct?

-twantrd
 
Old 11-28-2004, 04:14 PM   #4
eastern_strider
LQ Newbie
 
Registered: Nov 2004
Location: Orlando
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0
>>1. Does directory 'ashley' have 755 on it?

Yes, my user directory has 755 permissions on it (although in apache documentation it is OK to use 711)

>>2. Did user ashley create the 'public_html' folder?

Yes, I've the public_html folder with 755 permissions

>>3. in httpd.conf, userdir_module is loaded correct?

I've the following line in httpd.conf
LoadModule userdir_module modules/mod_userdir.so

Also I've

<IfModule mod_userdir.c>

UserDir public_html

</IfModule>

in httpd.conf

Everything seems normal but I couldn't figure out why it is not working...

Thanks.
 
Old 11-29-2004, 01:58 AM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
You are using the url: "http://<your domain here>/~ashley/". Have you tried: "http://<your domain here>/users/~ashley/"?

Also for the public_html folder, I recall that the apache doc or some doc said that the user must create it and not root. Make sure you didn't create it with root. Also, have you placed an index.html in the user's folder and tried accessing using "http://<your domain>/~ashley/index.html"? Did that come back with anything? Other than that, your setup looks correct and looks the same as the setup I have running on my machine.


-twantrd
 
  


Reply



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 UserDir Problem sbb Linux - Software 13 04-10-2006 06:29 PM
Apache UserDir Abbaddon Slackware 12 09-15-2004 11:28 AM
UserDir public_html - Problems with CGI wzws Linux - General 3 03-11-2004 07:40 AM
Problem with Apache and public_html MiB_24 Linux - General 3 07-28-2002 12:33 AM
apache UserDir public_html problem aeshley Linux - Networking 4 01-17-2002 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration