LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-19-2003, 02:48 PM   #1
Robin01
Member
 
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
/etc/httpd/conf/httpd.conf.
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.

results:
[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 APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-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, 03:56 PM   #2
Looking_Lost
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
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:30 PM.

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