Page 1 of 1

apache configuration: user dir problem [Solved]

Posted: Mon Dec 03, 2007 9:42 am
by yacahuma
I am using ubuntu 7.10 and apache2. I dont want to use the var/www directory.
I want to use /home/me/public_html(like in the mac) I found that this is supposed to be enabled by default.
I also noted that there is a userdir.conf inside mods-available directory.

I created an index.htm inside /home/me/public_html but when I visit http://localhost/~me/ apache does no see anything. Do I need to change some permission?? Am I missing something?

Thank you

solution found

Posted: Mon Dec 03, 2007 11:28 am
by yacahuma
I wish someone write about this thing by default. I imagine that anyone using the machine as a development plaform will use his local directory instead of var/www. may be I am wrong.

Anyway, the solutions was to copy the 2 files from mods-available into mods-enable and restart apache

then chmod 755 -R on /home/me/public_html

Posted: Tue Dec 04, 2007 12:43 am
by VladSun
You shouldn't copy module files - you should create a soft link instead:

Code: Select all

ln -s /path-to-apache/mods-available/mod_needed /path-to-apache/mods-enable
Also

Code: Select all

chmod 755 -R /home/me/public_html
would make every file in /home/me/public_html executable - I don't think you need this.
You need 0755 permissions on directories and 0644 permissions on ordinary files.

is working now

Posted: Tue Dec 04, 2007 4:01 am
by yacahuma
is working now. Thank you