poniedziałek, 8 sierpnia 2011

APC caching extension

http://www.blogcatalog.com/blogs/7php-dot-com

http://7php.com/linux-mint-how-to-install-apc-and-configure-apc-on-xampp-apc-caching-extension/

Found on the Internet - haven't checked yet ...

"To install APC (APC caching extension) for Xampp on your Linux Mint or Ubuntu distro, just follow the steps below:

# cd apc (to your apc folder you just extracted)
# sudo /opt/lampp/bin/phpize
# ./configure –enable-apc –with-apxs –with-php-config=/opt/lampp/bin/php-config
# make
# sudo make install

Next Step is to edit you php.ini and add the apc extension as follows:extension=apc.so

How To Configure APC In php.ini ?

I have been pretty comfortable with the following APC Settings so far with version PHP 5.3.2+ (I haven’t tested with lower PHP version)

In your php.ini, just add the following block:
NOTE:
=> There should be only one line of extension=apc.so
=> So either delete the one you added above, or remove the one in the block below.. your choice, but I prefer the one below, to keep things grouped by modules/extensions

[apc]
extension=apc.so
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 32M
apc.optimization = 0
apc.num_files_hint = 512
apc.user_entries_hint = 1024
apc.ttl = 0
apc.user_ttl = 0
apc.gc_ttl = 600
apc.cache_by_default = 0
apc.filters = “apc\.php$”
apc.slam_defense = 0
apc.use_request_time = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.file_update_protection = 2
apc.enable_cli = 0
apc.max_file_size = 2M
apc.stat = 0
apc.write_lock = 1
apc.report_autofilter = 0
apc.include_once_override = 0
apc.rfc1867 = 0
apc.rfc1867_prefix = “upload_”
apc.rfc1867_name = “APC_UPLOAD_PROGRESS”
apc.rfc1867_freq = 0
apc.localcache = 1
apc.localcache.size = 512
apc.coredump_unmap = 0
apc.stat_ctime = 0

Possible Errors During Execution Of phpize..."

Brak komentarzy:

Prześlij komentarz