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
apache configuration: user dir problem [Solved]
Moderator: General Moderators
apache configuration: user dir problem [Solved]
Last edited by yacahuma on Tue Dec 04, 2007 4:01 am, edited 1 time in total.
solution found
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
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
You shouldn't copy module files - you should create a soft link instead:
Also
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.
Code: Select all
ln -s /path-to-apache/mods-available/mod_needed /path-to-apache/mods-enableCode: Select all
chmod 755 -R /home/me/public_htmlYou need 0755 permissions on directories and 0644 permissions on ordinary files.
There are 10 types of people in this world, those who understand binary and those who don't
is working now
is working now. Thank you