LinuxQuestions.org
Visit Jeremy's Blog.
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 12-02-2008, 05:09 AM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
enable ~/public_html/ in RHEL4 and also in Apache


Hi keen buddies,

how to enable public_html for every user in RHEL4.

tq.
 
Old 12-02-2008, 05:24 AM   #2
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17
Edit httpd.conf

Find UserDir directive and edit it.

If you're on SELinux too, set security context.

Code:
chcon -R -t httpd_sys_content_t /path/to/public_html
And make sure every directory in way of every user's public_html dir, have execute permission on...
 
Old 12-02-2008, 05:27 AM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by n03x3c View Post
Edit httpd.conf

Find UserDir directive and edit it.

If you're on SELinux too, set security context.

Code:
chcon -R -t httpd_sys_content_t /path/to/public_html
And make sure every directory in way of every user's public_html dir, have execute permission on...

how about the main httpd.conf do I have to edit something inside this file or just create .htaccess file in /home/usr/public_html?

tq.
 
Old 12-02-2008, 05:34 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Yes, and search for UserDir. Change disable to enable
 
Old 12-02-2008, 05:56 AM   #5
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by billymayday View Post
Yes, and search for UserDir. Change disable to enable
how about the configuration of ssl?

is it included in .htaccess for every user?

how to create a standard format of directory for a certain ssl directory for every user.

like /home/user/public_html/www
like /home/user/public_html/http
like /home/user/public_html/docs
like /home/user/public_html/ssldocs
etc..etc...

thanks
 
  


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+.htaccess+public_html willigiann Linux - Networking 1 01-16-2007 10:17 PM
apache public_html access denied willigiann Linux - Networking 2 12-12-2006 12:36 PM
Ads for users public_html on Apache 2 Oxagast Linux - Software 5 10-09-2005 07:27 PM
How to enable directory browsing inside public_html? gepesz Linux - Networking 1 07-23-2004 05:11 PM
Problem with Apache and public_html MiB_24 Linux - General 3 07-28-2002 01:33 AM


All times are GMT -5. The time now is 05:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration