Re: apache
On Sun, Jul 06, 2003 at 02:05:23PM +0200, mi wrote:
> It seems any server process is terminated immediateley after every single
> request from a broser. In other words, a 'ps aux' doesn't show any apache
> process when my browser opens localhost:80; only a 'top' does for short.
> Every single page request newly starts apache from inetd.
> This menas a really slow performance.
> I hope my config somehow is suboptimal .... ?
> Or is this behavior unevitable with inetd.
That's exactly right. Whenever a request comes in on port 80, inetd starts up
an apache process to handle it. Once the request is completed, inetd kills
the apache process.
If you want to run apache as a daemon, run it from the /etc/init.d/ start up
scripts. Don't forget to modify your httpd.conf to:
ServerType standalone
>
> (2) Where is mime_magic ?
> ----------------------------------------
> This is probabIy more debian-related...
>
> # /var/log/apache/error.log:
>>>
> [Wed Jul 2 19:09:08 2003] [error] (2)No such file or directory:
> mod_mime_magic: can't read magic file /etc/apache/share/magic
><<
This is bug #159000 which has been fixed. You might just need to upgrade
apache.
Otherwise, if you comment out the line:
MIMEMagicFile share/magic
in your apache config, you shouldn't get this error anymore.
>From the apache docs:
This module determines the MIME type of files in the same way the Unix
file(1) command works: it looks at the first few bytes of the file. It
is intended as a "second line of defense" for cases that mod_mime can't
resolve.
I wouldn't be too concerned about removing this functionality, as I imagine
it's rarely needed. I bet someone will chime in now with the many times this
has been really useful for them and I'll be suitably shameful...
Cheers,
Paul.
Reply to:
- Follow-Ups:
- Re: apache
- From: Russell Coker <russell@coker.com.au>
- References:
- apache
- From: mi <Michael.Wordehoff@gmx.de>