apache configuration: user dir problem [Solved]

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

apache configuration: user dir problem [Solved]

Post 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
Last edited by yacahuma on Tue Dec 04, 2007 4:01 am, edited 1 time in total.
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

solution found

Post 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
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post 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.
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

is working now

Post by yacahuma »

is working now. Thank you
Post Reply