Operating System - HP-UX
1754310 Members
2695 Online
108813 Solutions
New Discussion

Apache httpds.pid file permission

 
G V R Shankar
Valued Contributor

Apache httpds.pid file permission

Hi All,

There has disruption in the OBES application and apache was not starting. During the investigation we found that the ownership of the files

/ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid
/ora01/u12/prodora/iAS/Apache/Apache/logs/httpd_pls.pid

are owned by root and sys. We had to change the ownership to ora01 and dba and start the application and it has come up well.

I don't udnerstand how the file permissions got changed. Below information is from appache error_log

ll /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid
-rw------- 1 root sys 6 Jan 11 10:58 /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid

From error_log

[Mon Jan 11 10:50:45 2010] [warn] child process 13781 still did not exit, sending a SIGTERM
[Mon Jan 11 10:50:46 2010] [warn] child process 13782 still did not exit, sending a SIGTERM
[Mon Jan 11 10:50:46 2010] [warn] child process 13783 still did not exit, sending a SIGTERM
[Mon Jan 11 10:50:46 2010] [warn] child process 13983 still did not exit, sending a SIGTERM
[Mon Jan 11 10:50:46 2010] [warn] child process 13984 still did not exit, sending a SIGTERM
[Mon Jan 11 10:50:46 2010] [warn] child process 13159 still did not exit, sending a SIGTERM
[Mon Jan 11 10:50:50 2010] [notice] caught SIGTERM, shutting down
[Mon Jan 11 10:58:28 2010] [notice] FastCGI: process manager initialized (pid 25590)
[Mon Jan 11 10:58:29 2010] [notice] Oracle HTTP Server Powered by Apache/1.3.19 configured -- resuming normal operations

[Mon Jan 11 14:19:57 2010] [warn] pid file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid overwritten -- Unclean shutdown of previous Apache run?
fopen: Permission denied
httpd: could not log pid to file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid
[Mon Jan 11 14:35:46 2010] [warn] pid file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid overwritten -- Unclean shutdown of previous Apache run?
fopen: Permission denied
httpd: could not log pid to file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid
[Mon Jan 11 14:49:04 2010] [warn] pid file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid overwritten -- Unclean shutdown of previous Apache run?
fopen: Permission denied
httpd: could not log pid to file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid
[Mon Jan 11 15:17:24 2010] [warn] pid file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid overwritten -- Unclean shutdown of previous Apache run?
fopen: Permission denied
httpd: could not log pid to file /ora01/u12/prodora/iAS/Apache/Apache/logs/httpds.pid

Looks like this is a known issue, but I am unable to find a supporting document in Apache or OBES.

I have checked all the logs, but there is no trace of changing the ownership.

Can you please help me here,

Ravi.
1 REPLY 1
likid0
Honored Contributor

Re: Apache httpds.pid file permission

Just a Long shot..

It happens to us with weblogic servers, if by mistake someone starts the servers as root instead of bea, next time you try to start a weblogic instance as bea yo get the same errors on pid,log files,etc..
Windows?, no thanks