Click to See Complete Forum and Search --> : having apache issues


robin1
09-17-2003, 06:55 PM
Hello everybody...

confused......

RH9.
INstalled rh9 and configured 2 internal webpages and they work fine... but for for education reasons i uninstalled apache...
used the following like to learn more about the process of installing apache.
http://www10.brinkster.com/ssruprai/comphp.asp#introduction.
i think the installation was successfuly, since i didn't get any err msg and what have u, it installed fine..

Reinstalled apache2...
started apache /wwwroot/bin/apachectl start... this process works
went back to my other machinc and tried accessing one of the webpage i setup originall before uninstalling apache and it worked....where is this configuration comming from since i uninstalled and installed apache.
reinstalled apache2 in /wwwroot.
i modified the init.d/httpd to point to /wwwroot/config but yet i was still able to access the old page....

sec... i type "TOP" in terminal after running apache and i couldn't see the processer but its working

any help u can give me would be greatly appreciated...
need better understanding of whats going on here....
the doc. i been looking at all point to 2 files... init.d/http and the confg/config.httpd.. but they seem to be ok...
i am new to linux but learning...

thanks everybody

Hayl
09-17-2003, 07:00 PM
the apache servers uses the document root that is config is set up in config files in the /etc/directory. for example, debian uses /etc/apache/httpd.conf

robin1
09-17-2003, 07:50 PM
Hi Hayl,

In regards to your last msg....the only reference to apache i could find under the /etc was /etc/httpd/conf. in it the file httpd.conf but its empty. also found the fjile httpd.conf.bak....looked in the backup file and it doesn't have any reference to the virtual host i setup in my original installation of apache.

confusing....
not usre if it matters but when i original seutp apache i used a gui interface to setup the virtual host, whould this have any affect in the way its configured......

Hayl
09-17-2003, 08:01 PM
probably not. you need to figure out where the httpd.conf file that it is using is though :)

sclebo05
09-17-2003, 08:07 PM
Originally posted by Hayl
the apache servers uses the document root that is config is set up in config files in the /etc/directory. for example, debian uses /etc/apache/httpd.conf

as a fellow RH9 user, i can assure you it is at that location, if you installed it from the CD or any kind of rpm manager

blizz
09-17-2003, 08:07 PM
Assuming you did and rpm install and uninstall check /etc/httpd/conf/ and see if there is an httpd.conf.rpmnew and if so then check it out for your vhost configurations then rename it httpd.conf and back up your existing httpd.conf to something like httpd.conf.old and restart apache.

Did you backup your original httpd.conf file??? If not you should consider doing so anytime you do an upgrade.

robin1
09-17-2003, 09:29 PM
Thanks for the help everyone but problem still remains.....
but i think i'm getting close..
when i reinstalled apache it installed it ot /wwwroot dir..

to narrow down the problem i renamed /etc/httpd to /etc/httpd1 so if it was trying to access /etc/httpd it would display a msg which i did telling me that its not accessing /wwwroot as it should....

msg displayed ->> apachectl start...
"grep:/etc/httpd/conf/httpd.conf: no such file or directory httpd: could not open document config file /etc/http/conf/httpd.conf"

so i looked in the file init.d/httpd, according to this script its fine... and the path in this file is pointing to /wwwroot..
init.d/httpd file contains the following line to point to wwwroot..
apachectl=/wwwroot/bin/apachectl

shouldn't this fix the problem..