Click to See Complete Forum and Search --> : Configuring httpd.conf


etortola
06-04-2006, 11:59 AM
/*
The default document root is /var/www/htdocs. Also, the userdir module is loaded by default, allowing users of your system to place their websites in ~/public_html. This is accessible as http://localhost/~username/. Main settings can be changed in /etc/apache/httpd.conf.
*/

I was able to dug this out from a few forums and tutorials... I'm trying userid modules but i dont know what to edit in httpd.conf. I'm sorry for asking very basic questions i hope i'm not wasting your time but any help would be appreciated... thanks :confused: :D

Choozo
06-04-2006, 06:04 PM
Usually you wouldn't have to edit anything in httpd.conf in order to get http://hostname/~username/ to work. Just make sure all users have a 'public_html' directory in their home - /home/<username>/public_html/

ph34r
06-05-2006, 02:50 PM
To add to the above, make sure that hte full path down to ~/public_html is world readable... or at least readable and execuatble by the group your apache install runs as

etortola
06-06-2006, 11:51 AM
I already tried chmod 755 to the public_html directory, i even tried 777 but it still wouldnt work. when i try to access the server without editing httpd.conf it would display an html containing "it works", which i found out to be in apache2/htdocs/index.html.
Is it maybe because i did'nt add a group or user that will be used to run apache?
some docu suggests to add a www user and do a chmod to make www the owner of apache. because i installed and ran the httpd service using root. would that affect anything? :confused:

Choozo
06-07-2006, 08:24 AM
Look for 'usermod' in your httpd.conf file, and see if you need to uncomment those.