> -----Original Message-----
> From: Dotan Cohen [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 3. März 2006 14:30
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] DocumentRoot problem
> 
> I seem to have both Apache and Apache2 installed on my 
> Kubuntu 5.10 system:
> [EMAIL PROTECTED]:/etc/apache# ls /etc/apac<tab>
> apache/  apache2/
> [EMAIL PROTECTED]:/etc/apache# ls /etc/apache
> 
> I need to change my DocumentRoot to /home/user/www from the 
> current /var/www
> I suspect that /etc/apache2/httpd.conf is not the right place because
> it says so:
> [EMAIL PROTECTED]:/etc/apache# cat /etc/apache2/httpd.conf
> # This is here for backwards compatability reasons and to support
> #  installing 3rd party modules directly via apxs2, rather than
> #  through the /etc/apache2/mods-{available,enabled} mechanism.
> #
> #LoadModule mod_placeholder 
> /usr/lib/apache2/modules/mod_placeholder.so
> 
> But in any case, I did add the line:
> DocumentRoot /home/dotancohen/www
> However, this did not change my Docroot. I also changed this line in
> /etc/apache/httpd.conf however it had no effect either- after
> restarting the service, Docroot remained at /var/www
> 
> What must I do to change the docroot? Thank you.

You're doing the right thing - you must simply be editing the wrong config file 
(this is a likely problem if you have several installs and are not sure which 
one is running).

If you do "ps -ef" you should see the full path to httpd (eg 
/usr/local/apache2/httpd). Then if you do:

$ /full/path/to/httpd -V and look for SERVER_CONFIG_FILE it will tell you where 
its default config file is. 

Other tricks:

- put a deliberate syntax error in the config and do a configtest: it should 
complain
- look for "-f" in the ps output (this is the flag to select a particular 
config file).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  

> 
> Dotan Cohen
> http://IE-Only.com
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen 
Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a 
private and personal nature. It is not related to the exchange or business 
activities of the SWX Group. Le présent e-mail est un message privé et 
personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to