troubles in apache on virtual hosts and pid

hi there
i have just got an old web server that was running urchin for analysis
so the log size was about 2 giga so i decided to rotate the log
so i did the following
#gzip access_log.site
#mv access_log.site.gzip /home/oldlogs
that was going fine here
then
#apachectl stop;sleep 5;apachectl restart
so i got the following error
httpd (no pid file) not running
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs!
so i figured out that i have 3 problems
1 - the pid file and that i cannot stop apache
2- that i have ip error
3- the log files
so i checked my httpd.conf file , so i found that there is 2 of them:
1- in /etc/httpd/conf (which contains a regular configuration and it maps the pid file to /etc/httpd/logs/httpd.pid ) where the pid file doesnot exist
2- in /home/www/httpd/conf/httpd.conf (which contacins the actual setting that i use like ip mapping and current vhosts etc) and it maps the pid file to /home/www/httpd/logs/httpd.pid which exacts and the locatio0n is write
so what is wrong and why i cannot stop the apache service (any suggestion)
for the address confilict
i found in the configuration file tyhe following
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>
also
#
# Use name-based virtual hosting.
#
NameVirtualHost xx.xx.xxx.xxx:80
NameVirtualHost xx.xx.xxx.xxx:443
so i think that listening for apache and ssl on the ports on one ip is causing the trouple is that write ???
so i donot know is killing the apache proccess is right and safe i am donot want my apache to stop...
and is removing the ssl will resolve the conflict???
so any one can help me
really thank u

 

 

 

 

Top