What about trying: LogFormat "%h %l %u %t \"%r\" %>s %b %{PHP:mod_php_memory_usage}x
\"%{Referer}i\" \"%{User-Agent}i\"" memoryusage does that work? Keith In theory, theory and practice are the same; In practice they are not. On Fri, 3 Feb 2006, Eric wrote: > To: php-install@lists.php.net > From: Eric <[EMAIL PROTECTED]> > Subject: [PHP-INSTALL] mod_php_memory_usage not working > > OK, I've recompiled php 5.0.3 on my 3 web servers with > --enable-memory-limit, however using the > %{mod_php_memory_usage}n for the LogFormat directive in > the apache config still doesn't work. All it reports to > the log file is 0 for ever php script that gets ran > (reported a '-' before i recompiled php with memory_limit > support). It's the same on all 3 of my servers. The > LogFormat directive I have looks like this: > > LogFormat "%h %l %u %t \"%r\" %>s %b PHP:%{mod_php_memory_usage}n > \"%{Referer}i\" \"%{User-Agent}i\"" memoryusage > > memory_get_usage() works fine and any process using up too much memory > gets killed successfully, so I know support is definitely compiled in. > > Thanks, > Eric >