1753404 Members
6996 Online
108793 Solutions
New Discussion юеВ

Re: Apache webserver

 
SOLVED
Go to solution
Oliver Schmitz
Regular Advisor

Apache webserver

Dear all,

in following the origin hp advices for installing and administering the hp based apache webserver i run into serious problems:

It is written in this crazy document that one should search after the technological preversion and delete it before with swremove B9416AA and then remove the remaining directory structure /opt/hpapache2/. I try to do so but swremove does not find the product mentioned. I did the rm -r of the directory mentioned and it tells me that some files are busy (among them the httpd which I searched before with ps -ef and which was defenitely nor running).
Now I can not remove the files in this directory and I do not know how to proceed further. Just installing the apache again should bring me into more problems as mentioned in the document of hp mentioned above (shall I believe in this information).
If somebody has some hints for me would be very helpfull.


Thanks in advance and best regards,

Oliver
Oliver Schmitz
4 REPLIES 4
Matt Hearn
Regular Advisor
Solution

Re: Apache webserver

If you know what files are noted as being open (in this case, you can try the httpd file), run fuser on them to see what processes are using the file:

fuser /opt/hpapache2/bin/httpd

It should tell the process numbers of anything using it. Here's an example I ran on syslog (I don't run httpd):

>> fuser /var/adm/syslog/syslog.log
/var/adm/syslog/syslog.log: 765o 5423o

>> ps -ef | grep -e 5423 -e "765 "
root 765 1 0 Nov 15 ? 0:12 /usr/sbin/syslogd -D
root 5423 5405 0 Nov 15 ? 12:51 opcle

Let us know what processes you see using the files.

Thanks!
Oliver Schmitz
Regular Advisor

Re: Apache webserver

Thanks for this entrance. Here the proocesses

# fuser /opt/hpapache2/bin/httpd
/opt/hpapache2/bin/httpd: 10747mt

# ps -ef |grep -e 10747
root 11001 10765 1 15:36:39 pts/11 0:00 grep -e 10747
root 10747 1 255 15:00:48 ? 34:17 /opt/hpapache2/bin/httpd -d /opt/hpapache2 -k start
Oliver Schmitz
Oliver Schmitz
Regular Advisor

Re: Apache webserver

Thanks Matt,

I used fuser (could have this idea but was so amazed by the strange behaviour) to identificate all the running processes, did some fiddeling, killed them and now I am clean to install the apache.

Best regards,

Oliver
Oliver Schmitz
Robert-Jan Goossens
Honored Contributor

Re: Apache webserver

Hi oliver,

There is on piece missing in the doc, apache should be stopped before yo remove the software.

# apachectl stop

Try to kill the PID you got from fuser.

HTH,
Robert-Jan