Sunday, October 7, 2007

How to create public_html in Debian

First of all check whether enable-modules under your apache server
for that
goto /etc/apache2/mods-enabled/ folder and check userdir.conf, userdir.load modules are enabled by simply typing ls command

if not then goto /etc/apache2/mods-enabled and create symbolic link as follow

sudo ln -s ../mods-available/userdir.load
sudo ln -s ../mods-available/userdir.conf

Finally create public_html folder under your home directory an give full access permission to it
then Please restart your apache server (sudo /etc/init.d/apache2 restart)

then access it through following link

http://localhost/~[your_home_directory_name]/ (for me it's http://localhost/~prabath/)

For Ubuntu also if public_html doesn't work do above instruction to enable it.

7 comments:

Ehren Metcalfe said...

Thanks for the tip!

Anonymous said...

as root do

a2enmod userdir

and

/etc/init.d/apache2 restart

then you just have to create public_html in your user home

Anonymous said...

I think you have a great page here… today was my first time coming here.. I just happened to find it doing a google search. anyway, good post.. I’ll be bookmarking this page for sure.

André Verwijs said...

But how do I resolve DNS on internet? to find the server...

Anonymous said...

Thanks a lot machan!

Anonymous said...

Patta.

Daniel said...

Thanks a lot for the explanation.