Httpd

Rick Stevens ricks at nerd.com
Thu Jan 28 18:58:09 UTC 2010


On 01/28/2010 09:17 AM, jarmo wrote:
> Hi
>
> I'm still suffering a bit httpd service mallfunction...
>
> [root at oh1mrr LimeWire]# service httpd start
> Käynnistetään httpd:                                       [  OK  ]
>
> Error_log says:
>
> [Thu Jan 28 19:10:10 2010] [notice] core dump file size limit raised to
> 4294967295 bytes
> [Thu Jan 28 19:10:10 2010] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Thu Jan 28 19:10:10 2010] [notice] Digest: generating secret for digest
> authentication ...
> [Thu Jan 28 19:10:10 2010] [notice] Digest: done
> [Thu Jan 28 19:10:11 2010] [error] python_init: Python version mismatch,
> expected '2.6', found '2.6.2'.
> [Thu Jan 28 19:10:11 2010] [error] python_init: Python executable found
> '/usr/bin/python'.
> [Thu Jan 28 19:10:11 2010] [error] python_init: Python path being used
> '/usr/lib/python26.zip:/usr/lib/python2.6/:/usr/lib/python2.6/plat-
> linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-
> old:/usr/lib/python2.6/lib-dynload'.
> [Thu Jan 28 19:10:11 2010] [notice] mod_python: Creating 4 session mutexes
> based on 150 max processes and 0 max threads.
> [Thu Jan 28 19:10:11 2010] [notice] mod_python: using mutex_directory /tmp
> [Thu Jan 28 19:10:11 2010] [notice] Apache/2.2.14 (Unix) DAV/2 PHP/5.3.1
> mod_python/3.3.1 Python/2.6.2 mod_ssl/2.2.14 OpenSSL/1.0.0-fips-beta4
> mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
>
> [root at oh1mrr LimeWire]# service httpd stop
> Suljetaan httpd:                                           [VIRHE ]<--- That
> means, closing httpd: [failure]
>
> Error_log says nothing at this point, I have to kill pid of httpd manually, if
> want to stop it....

The /etc/rc.d/init.d/httpd script tries to shut down Apache by executing
killproc against the parent Apache process.  It does this by picking up
the PID from a file, "/var/run/httpd/httpd.pid" (that's the default).

If your Apache config puts the PID in a different file, that'd explain
it.

Make sure the "PidFile" directive in your Apache config matches the
"pidfile" directive in "/etc/rc.d/init.d/httpd".  Note that the
"PidFile" directive in the Apache config may be a relative path (one
not starting with a "/"), in which case the first part of the path to
the PidFile is that in the "ServerRoot" directive.

In an F12 system where Apache was installed via RPM, the default Apache 
config sets "ServerRoot" to "/etc/httpd" and "PidFile" set to
"run/httpd.pid".

Looking at the directory structures, "/etc/httpd/run" is a symlink to
"../../var/run/httpd".  So Apache should put the PID in
"/var/run/httpd/httpd.pid", which is where the script expects it.
Damned convoluted, but there it is.

You should start Apache and verify that the values returned by these two 
commands match:

	cat /etc/httpd/run/httpd.pid
	cat /var/run/httpd/httpd.pid

You should also sort out the python version mismatch.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-    If your broker is so damned smart...why is he still working?    -
----------------------------------------------------------------------


More information about the users mailing list