7. PHP extensionsThere are many different extensions available for php, which can be added in your php.ini 7.1. APC (Alternative PHP-cache)7.1.1. What is APC
The author made some performance-Tests with apc and it was real surprise. A PHP-Webpage with MySQL-queries in a loop (total 10 queries) was more than 50% faster Contra APC: If you have other users on the system coding php they maybe are not comfortable with APC, because the changes are all ignored unless you reset the cache or restart Apache. The other way, namely that APC checks the php-script for a newer version before every run costs speed. 7.1.2. Download the sourceOrigin-Site: http://apc.communityconnect.com/sources/apc-cvs.tar.gz 7.1.3. Building and installing
Restart your Apache-Webserver. Try it out, create a php-file with the following content: 7.2. Zend-Optimizer (Do _NOT_ combine with APC-Cache!)7.2.1. What is Zend-optimizer
Zend-Optimizer is a freeware closed source product. On the same testcode used for the APC-test, there was speed-decrease of about 5% compared to PHP without APC. You have to make your own test, to see, if you have some improvements with your own code. Be sure not to NOT use Zend Optimizer together with APC, or your whole setup will not work. 7.2.2. Download the binaryOrigin-Site: https://www.zend.com/store/free_download.php?pid=13
7.2.3. InstallingThere is noting to build, this product is closed-source and so only available as binary for different platforms. The filename varies according your platform, the sample is for Linux on IA32.
The install script is self-explanatory, if you compiled Apache and PHP like described in this document, you can just press ENTER on all questions about the pathnames. Linux HOWTO full list |
||||||||||||||||||||
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |