Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Install the turck-mmcache PHP accelerator UNIX
The following instructions loosely define how to build the turck-mmchache accelerator for PHP. With the accelerator installed, your PHP pages will be served faster than if you were running without the accelerator. You can also encode PHP source code for distribution that is unmodifiable, expires, etc.

You can run "before and after" benchmark tests with a command like this:
/usr/sbin/ab -n200 -c1 -d -S "http://localhost/some_php_page.php"
[robg adds: This hint has been written up as one long bash script with instructions. Instead of reproducing it here, I've uploaded it as a separate text file: install_turck.txt. Click the link to open the file in a new window -- make sure you read all the instructions, as there are manual steps you'll need to take. I have not tested this one.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[11,076 views]  

Install the turck-mmcache PHP accelerator | 5 comments | Create New Account
Click here to return to the 'Install the turck-mmcache PHP accelerator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Install the turck-mmcache PHP accelerator
Authored by: blakers on Aug 11, '04 04:41:50PM

just fyi, since I'd posted some earlier detailed instructions (http://www.macosxhints.com/article.php?story=20031120185347801) i've moved to the php500 release.

with that move there've been a *lot* of 'issues' with turck-mmcache simply & completely conflicting with a variety of php apps/tools i use (e.g. phpgacl, phpbb2, among others ...).

so much so that i've pulled it out of my setup.

there's also been a 'change of guard' on turck's development team -- the original developer (D. Stogov ?) went to work for Zend on the 'competing' ZendOptimizer (which, btw, ALSO doesn't work on my setup ...), leading to a slow-down while things reorganize.

that said, php5 is, in an of itself, a significant speed boost over php4x ... and I wonder if the benefits of mmcache are/will be as great ...

richard



[ Reply to This | # ]
Install the turck-mmcache PHP accelerator
Authored by: bluehz on Aug 11, '04 04:55:36PM

Thx for the info - I just upgraded to Apache 2.0.50 and PHP 5.x this past weekend. As a matter of fact I had to pull the turck source from the cvs in order to get it to compile and run under PHP5.0. I must admit I run a fairly generic php site though - so I have not had any problems with it.



[ Reply to This | # ]
script problems
Authored by: taran on Aug 19, '04 10:12:41AM

Line 39 (export PHP_PREFIX="/usr/bin") should be (export PHP_PREFIX="/usr").

Also, trying both with the download of 2.4.6 from Sourceforge as well as CVS, configure dumps me out saying it cannot run config.sub (there is no such file included). The weird thing is that I've installed Turck on several RedHat machines with no problem.

I'm going to try commenting out the lines referencing the non-existent file(s) in configure and see if that works for me.



[ Reply to This | # ]
followup
Authored by: taran on Aug 19, '04 05:10:09PM
The problem was that phpize was looking for libtoolize. A bit of looking around uncovered libtool, glibtool, and glibtoolize, but no libtoolize so I did a quick sudo ln -s /usr/bin/glibtoolize /usr/bin/libtoolize and everything worked fine.

[ Reply to This | # ]
Install the turck-mmcache PHP accelerator
Authored by: currawong on Jan 19, '05 07:57:35PM
Over at AppleTalk Australia, spectre has kindly written an article on how he installed the mmcache in 10.3.

[ Reply to This | # ]