Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-24-2003, 02:48 PM   #1
Registered: Jun 2003
Posts: 36

Rep: Reputation: 15
unable to set a site root directory in apache

Hi all, I'm going thru the O'Reilly Apache 3rd edition book and am having trouble manually assigning a root directory for the server.

According to the book, typing in the following should start up apache with something other than the "default" server root directory:

httpd -f /someDirectory/conf/httpd.conf -d /somedirectory/

Running this command starts Apache fine, but it does not reset the root directory. Instead, the root directory is the "default" directory, and running lynx http :// results in the infamous "Hey it worked!" yadda yadda Apache default web page that is in my /apache/htdocs folder, when it should be my /somdirectory/ folder.

Did I do something wrong when I compiled so that I can't use the -d option with the httpd command? Does anybody have any ideas? Thanks in advance!

Old 09-24-2003, 03:01 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It only specifies a different server root not a different DocumentRoot. The serverroot is the location of modules etc.
Old 09-25-2003, 06:50 PM   #3
Registered: Jun 2003
Posts: 36

Original Poster
Rep: Reputation: 15

Awesome thanks, I realized that I need to set the DocumentRoot directive in the http.config file. I now have a website up and limping! Thanks for the response.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to install LILO nor set root password aquilolumen Slackware - Installation 10 07-07-2005 02:15 PM
How to set user's root directory in SSH? nyy Linux - Software 2 08-24-2004 07:07 AM
apache unable to access /home/*/public_html directory cavemanf16 Linux - Software 6 07-08-2004 06:43 AM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 12:41 PM
linux-apache-unable to connect to site derekw Linux - Networking 2 09-18-2002 05:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration