Google Plus

How to Enable Userdir (Public_html) in Ubuntu, Linuxmint and Fedora

Written by Mel Kham on . Posted in Frequently Asked Questions

 Question: How  to  How  to  Enable Userdir ?

Answer

  • For  Debian/Ubuntu/Mint




1- First install userdir module:

apt-get install apache2.2-common
root@Ub11:~# a2enmod userdir 
Enabling module userdir.
To to activate the new configuration, you need to run:
/etc/init.d/apache2 restart
root@Ub11:~#

2- Edit the  file  /etc/apache2/mods-enabled/userdir.conf

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

to

AllowOverrid  All

Options ExecCGI

 

3- Make public_html on your home

mkdir public_html 

and  put   your  files  inside  (index.php  html  cgi …)

  • For Fedora 14/15:

vi /etc/httpd/conf/httpd.conf
#make it comment
#  UserDir disable
#and  uncomment  uncomment
UserDir public_html
<Directory /home/*/public_html>
AllowOverride  All
Options ExecCGI
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

save  and  exit and  restart apache

/etc/rc.d/init.d/httpd restart

Stopping httpd: [ OK ]
Starting httpd: [  OK}

 

now  open  your  browser  http://ip/~username/

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Snake

|

Wow, great. That’s what i’m waiting for too. I want to make DC with LDAP ( Active Directory alternative) and SAMBA on Ubuntu. :-)

Blawer

|

Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again

piCool

|

Great ! we have another another master trick :-)

Yilmaz Ulugtekin

|

Just delete the space after the slash (/) it will work.

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .