LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new apache install issue (https://www.linuxquestions.org/questions/linux-newbie-8/new-apache-install-issue-94601/)

Robin01 09-19-2003 02:48 PM

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"

Looking_Lost 09-19-2003 03:56 PM

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


All times are GMT -5. The time now is 09:10 PM.