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}