PHP/Cache: Unterschied zwischen den Versionen

Aus crazylinux.de
< PHP
Zur Navigation springen Zur Suche springen
K (cat)
K (x)
Zeile 6: Zeile 6:


==Installieren==
==Installieren==
  apt-get install apache-dev php4-dev
  apt-get install apache2-[prefork|threaded]-dev php5-dev
  pecl install apc
  pecl install apc


==Konfiguration==
==Konfiguration==
Finally, add this line to the bottom of your /etc/php4/apache/php.ini (or /etc/php/apache2/php.ini)
Finally, add this line to /etc/php5/apache2/conf.d/apc.ini
  extension=apc.so
  extension=apc.so


Dokumentation gibt unter
Dokumentation gibt unter
  http://de3.php.net/apc
  http://www.php.net/apc


==What is APC PHP/GUI==
==What is APC PHP/GUI==
APC PHP/GUI is a small tool to monitor APC, the Alternate PHP Cache. APC PHP/GUI is as you will have gathered written in PHP.
APC PHP/GUI is a small tool to monitor APC, the Alternate PHP Cache. APC PHP/GUI is as you will have gathered written in PHP.
If you know APCGUI, you will not be surprised by APC PHP/GUI, apart from that, that APC PHP/GUI works with the new APC Version (>2.0.3) located at http://pecl.php.net/package/APC.


==Links==
==Links==
Zeile 28: Zeile 27:


[http://phplens.com/lens/php-book/optimizing-debugging-php.php Sehr gute ausführliche Infos zu Optimize PHP]
[http://phplens.com/lens/php-book/optimizing-debugging-php.php Sehr gute ausführliche Infos zu Optimize PHP]
[[Category:WWW]]
 
[[Kategorie:Linux]]
[[Kategorie:Ubuntu]]
[[Kategorie:WWW]]
[[Kategorie:Apache]]
[[Kategorie:PHP]]

Version vom 18. Mai 2013, 23:30 Uhr

Abstract

php-Dateien werden normalerweise 'on-the-fly' übersetzt, was sich natürlich negativ auf die Performance auswirkt. Mit einem Cache werden die übersetzen Dateien im Arbeitsspeicher gehalten und können so viel schneller ausgeliefert werden. Desweiteren wird natürlich auch die CPU geschont. Es gibt eine handvoll an Produkten, einer davon ist der freie APC von PHP/PECL. Laut Golem soll PHP 6 direkt mit APC ausgeliefert werden.

Was ist APC

APC heisst »Alternative PHP Cache«. APC wurde erdacht um einen Weg zu Performancesteigerung auf hoch belasteten Servern zu erzielen. Dies wird erreicht durch das Zwischenspeichern der php-Seiten in ihrem kompilierten Zustand, so das der Overhead des Parsens und Kompilieren nahezu eliminiert wird. Es existieren kommerzielle Produkte mit derselben Funktionalität, aber diese sind weder OpenSource noch frei verfügbar

Installieren

apt-get install apache2-[prefork|threaded]-dev php5-dev
pecl install apc

Konfiguration

Finally, add this line to /etc/php5/apache2/conf.d/apc.ini

extension=apc.so

Dokumentation gibt unter

http://www.php.net/apc

What is APC PHP/GUI

APC PHP/GUI is a small tool to monitor APC, the Alternate PHP Cache. APC PHP/GUI is as you will have gathered written in PHP.

Links

http://pecl.php.net/package/APC
http://turck-mmcache.sourceforge.net/ (wird nicht mehr weiterentwickelt, Entwickler wurde wohl an Zend abgeworben)
http://eaccelerator.net/HomeDe?lg=de (wohl Nachfolger von TurckMMCache)
Zend Optimizer™
Afterburner

Sehr gute ausführliche Infos zu Optimize PHP