|
From: Steve B. <st...@bl...> - 2006-03-28 07:54:43
|
<jumping in> It does *something* with php-cgi.exe, because on my setup (W2K3, PHP 5.12), not only does the disk cache fill up with scripts as pages are requested, but the speed is roughly 40% faster with eA enabled. Plus, if I delete the cache, the initial page requests are at the regular (slow) speed, then as the cache starts getting hits again, the speeds for subsequent requests are much faster. So, it may not be doing everything it would on a php_mod setup, but it IS doing something to speed things up. Of course, this is disk-only cache... apparently shared memory doesn't work on my setup. Steve On 3/28/06, Bart Vanbrabant <bar...@zo...> wrote: > > Vyacheslav Chernousov wrote: > > Hi all. > > > > I see new page in wiki - http://eaccelerator.net/wiki/Faq > > > > Latest question is about EA working with php-cgi or php-cli. And I was > > wondered with answer: "This is not yet supported and it won't be > > supported in the near future." > > > > I'm using php-cgi and php-cli (5.1.2) with latest EA from SVN and > > it works good for me. At least I see compiled scripts in > > eaccelerator.cache_dir and also: > > > > ~ # php -v > > PHP 5.1.2-gentoo (cli) (built: Mar 16 2006 12:54:26) > > Copyright (c) 1997-2006 The PHP Group > > Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies > > with eAccelerator v0.9.5-dev, Copyright (c) 2004-2006 eAccelerator, > by eAccelerator > > with Xdebug v2.0.0beta5, Copyright (c) 2002, 2003, 2004, 2005, by > Derick Rethans > > > > > > ~ # php-cgi -v > > PHP 5.1.2-gentoo (cgi-fcgi) (built: Mar 16 2006 13:06:55) > > Copyright (c) 1997-2006 The PHP Group > > Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies > > with eAccelerator v0.9.5-dev, Copyright (c) 2004-2006 eAccelerator, > by eAccelerator > > with Xdebug v2.0.0beta5, Copyright (c) 2002, 2003, 2004, 2005, by > Derick Rethans > > > > > > Is this the error in FAQ? > > > > > > > You can load eAccelerator in the cgi/cli version, hence the line in the > output. But eAccelerator will never initialize it's cache. eAccelerator > needs a process that keeps running and all other php processes that need > to access the cache have to be forked from the main process. Only > mod_php and php-fastcgi can offer that. > > gr, > > Bart > > -- > Bart Vanbrabant <bar...@zo...> > PGP fingerprint: 093C BB84 17F6 3AA6 6D5E FC4F 84E1 FED1 E426 64D1 > > > > > -- Take care, Steve ~~~~~~~ "I try to think, but nothing happens!" -- Curly The Three Stooges |