Home | Mirror | Search

第 19 章 PECL :: The PHP Extension Community Library

目錄

1. php-apc - APC (Alternative PHP Cache) module for PHP 5
1.1. 編譯安裝 APC Cache
2. PHP Memcache
2.1. pecl
2.2. apt-get
2.3. example
3. php5-gd - GD module for php5
4. Database Extensions
4.1. sqlite
4.2. mysqli
4.3. MongoDB
4.4. php-redis.x86_64 : Extension for communicating with the Redis key-value store
4.5. php5-pgsql - PostgreSQL module for php5
4.6. PHP connect SQL Server under unix like
4.7. MySQL
4.8. oracle
5. xmlrpc
6. openssl
7. mcrypt
8. mhash
9. simplexml
10. ionCube
11. ZendOptimizer
12. zip
13. pcntl
14. mbstring
15. Suhosin
16. freetype
17. XCache
17.1. apt-get
17.2. make
18. XHProf
19. Xdebug
19.1. Webgrind
19.2. WinCacheGrind
20. UploadProgress

1. php-apc - APC (Alternative PHP Cache) module for PHP 5

		
$ apt-cache search php-apc
php-apc - APC (Alternative PHP Cache) module for PHP 5

$ sudo apt-get install php-apc

echo "apc.enabled = 1
apc.shm_size = 128
apc.shm_segments=1
apc.write_lock = 1
apc.rfc1867 = On
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
apc.slam_defense = Off
" >> /etc/php5/conf.d/apc.ini
		
		

1.1. 編譯安裝 APC Cache

例 19.1. php apc cache

pecl install

/usr/local/php/bin/pecl install apc
				

php.ini

				
extension_dir = "/usr/local/php-5.3.3/lib/php/extensions/"
extension = apc.so
				
				

comments powered by Disqus