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.
Subscribe to:
Post Comments (Atom)
7 comments:
Thanks for the tip!
as root do
a2enmod userdir
and
/etc/init.d/apache2 restart
then you just have to create public_html in your user home
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.
But how do I resolve DNS on internet? to find the server...
Thanks a lot machan!
Patta.
Thanks a lot for the explanation.
Post a Comment