Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-19-2003, 03:48 PM   #1
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
new apache install issue

hello everybody..

for education reasons I uninstalled and installed apache(rh9).
problem... everytime i try to start apache it seem to access the old configurations(/etc/httpd/conf/httpd.conf).
I'm pretty positive, i installed apache correctly.

to troubleshoot the problem i renamed the above httpd folder to httpdold.
now, when i run /wwwroot/bin apachectl start it displays teh following message: grep: /etc/httpd/conf/httpd.conf: No such file or directory . httpd: could not open document config file
becasue i renamed the folder...

the new install is under /wwwroot and the conf is under /wwwroot/conf where it should be loading it from. but its going after the old config..
-i changed the init.d/httpd to point to /wwwroot but it still not working..

-i ran the following command httpd -V. and as u can see the httpd_root is set to /etc/httpd insted of /wwwroot... HOW DO I CHANGE THIS ROOT TO /WWWROOT.

[root@voyager bin]# httpd -V
Server version: Apache/2.0.40
Server built: Feb 25 2003 05:01:56
Server's Module Magic Number: 20020628:0
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Old 09-19-2003, 04:56 PM   #2
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you compiled it yourself and used as part of the options

./configure --prefix=/wwwroot

it should have sorted itself out accordingly, does with me anyway

You can change the document root when you start it up by passing

httpd -d /wwwroot

or to just use the new httpd.conf

httpd -f /wwwroot/conf/httpd.conf

Don't have it at the moment so I can't look at anything else


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
ftp/apache issue Odins_Son Linux - General 1 08-17-2005 06:29 AM
Apache Issue Jukas Linux - Software 3 07-14-2005 02:33 PM
Apache security issue ivanatora Linux - General 4 04-18-2005 06:46 AM
Is this an apache issue? opsraja Linux - Networking 1 03-03-2005 12:03 AM
apache issue... Robin01 Linux - Newbie 3 09-21-2003 07:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 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
Open Source Consulting | Domain Registration