Main Menu
Home
Search
Support
How To's
OpenWiki
Contact Us
Users Blogs
User HowTo's
Announcements
Google Translation

 

 

 

 

Setup Apache2 with Access to Home Directories PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Paul Matthews   

The Apache server is capable of serving web pages straight from the directories of your system user accounts. This allows all the system users the ability to run their own web sites which are hosted off the main server. This is exactly the same way that many web server companys provide websites for their customers and its relatively easy to enable.

Name: Apache
HomePage: http://www.apache.org/
Function: Webserver

 

1. Make sure apache is installed

 

rpm –qa | grep apache

 

Setup Apache2 with Access to Home Directories

 

2. Make sure apache is turn off

/etc/init.d/httpd stop

 

Setup Apache2 with Access to Home Directories

3. Edit the httpd.conf file & Change the following configuration from

nano /etc/httpd/conf/httpd.conf

 

Code.conf:
<IfModule mod_userdir.c>
      UserDir disable
#    UserDir public_html
</IfModule>


to

 

Code.conf:
<IfModule mod_userdir.c>
#   UserDir disable
     UserDir public_html
</IfModule>

 

Setup Apache2 with Access to Home Directories

4. Then set the httpd.conf file this.

 

Code.conf:
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    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>

 

Setup Apache2 with Access to Home Directories

5. Now we have to make the universal directories

mkdir /etc/skel/public_html
chmod 705 /etc/skel/public_html

 

Setup Apache2 with Access to Home Directories

6. Now make a very basic index.html page and change the permissions

nano /etc/skel/public_html/index.html

 

Code.conf:
<html>
<body>
Testing out user page
</body>
</html>

 

Setup Apache2 with Access to Home Directories

chmod 604 /etc/skel/public_html/index.html

 

Setup Apache2 with Access to Home Directories

7. Now each user can make there own website and access it using a web browser

http://ip-address-of-the-apache-server/~username

 


BookMarking:

 

cell1

cell3 Submit to del.icio.us
cell4
AddThis Social Bookmark Button

 


Trouble Shooting:

 

Go to the wiki page

Go to the 'Contact Us ' Forum

Go to the how-to's Support Forum


External Links:

 

http://www.brennan.id.au/13-Apache_Web_Server.html#users

Last Updated ( Wednesday, 06 June 2007 )
 
< Prev   Next >