install eaccelerator di freebsd

| Friday, July 16, 2010

cd /usr/ports/www/eaccelerator

You have installed the eaccelerator package.
Edit /usr/local/etc/php.ini and add:
zend_extension="/usr/local/lib/php/20060613/eaccelerator.so"
Then create the cache directory:
mkdir /tmp/eaccelerator
chown www /tmp/eaccelerator
chmod 0700 /tmp/eaccelerator

u can try to config :
zend_extension="/usr/local/lib/php/20060613/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

eaccelerator.shm_size
This setting will allow you to control the amount of shared memory eAccelerator should allocate to cache PHP scripts. The number sets the amount of memory in megabytes. Setting this value to 0 will use the default size.

eaccelerator.shm_size

This setting will allow you to control the amount of shared memory eAccelerator should allocate to cache PHP scripts. The number sets the amount of memory in megabytes. Setting this value to 0 will use the default size.

eaccelerator.shm_size = "0"

On Linux the maximum amount of memory a process can allocate is limited by the number set in /proc/sys/kernel/shmmax. Allocating more than this value will result in eAccelerator failing to initialise. The size in this file is given in bytes. You can raise this amount with:

echo value > /proc/sys/kernel/shmmax

Where value is the size in bytes you want to use. This value is reset to the default value evertime you reboot, but you can raise it permanently by adding the amount you need in /etc/sysctl.conf. This is done by adding:

kernel.shmmax = value

eaccelerator.cache_dir

This directory is used for the disk cache. eAccelerator stores precompiled code, session data, content and user entries here. The same data can be stored in shared memory (for quicker access). The default value is “/tmp/eaccelerator”.

eaccelerator.cache_dir = "/tmp/eaccelerator"

This is easy because that directory is easily writable to everyone, and mounted with noexec. However, it isn’t the best because on a lot of systems this directory is cleared on reboot. A better place is /var/cache/eaccelerator. Create the directory and make sure it’s writable to the process eAccelerator runs under.

A safe bet is making it world writeable, a safer and cleaner way is making the user php runs under (most of the time the same user as apache or lighttpd) the owner and set 0644 permissions.

The lazy way:

mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator

eaccelerator.enable

With this setting you can enable or disable eAccelerator. This may seem like a pretty stupid setting, but it can be very useful. For example this setting can also be used in the vhost section of the Apache configuration. It allows you to disable eAccelerator for a certian vhost by placing php_admin_value eaccelerator.enable 0 in the vhost section.

Setting this value to “1″ enables eAccelerator, which is also the default value. Setting it to “0″ will disable eAccelerator.

eaccelerator.enable = "1"

eaccelerator.optimizer

Enables or disables the optimizer which may speed up code execution. Setting it “1″ will enable eAccelerator, “0″ disables it. By default the optimizer is enabled. The optimizer will only run when the script is compiled before it’s cached.

eaccelerator.optimizer = "1"

eaccelerator.debug

Enables or disables debug logging. Setting this to 1 will print information to the log file about the cache hits of a file. This is only useful when debugging eAccelerator for bug reports.

eaccelerator.debug = 0

eaccelerator.log_file

Set the log file for eaccelerator. When this option isn’t set then the data will be logged to stderr, when using PHP with Apache these lines will be added to the Apache error log.

eaccelerator.log_file = "/var/log/httpd/eaccelerator_log"

eaccelerator.name_space

When using the user cache api for storing data in shared memory, all keys are prepended by the hostname used for the current request. This hostname equals the ServerName? set in the vhost section of apache. This is done to avoid duplicate keys between vhosts. Sometimes this behaviour is desired to share data between vhosts. When setting this option this namespace is used to prepend to each key. By default this is set to “” which instructs eAccelerator to use the hostname as namespace.

When setting this in the main PHP configuration file this namespace will be used by all vhosts. This value can also be set in the vhost section or even in a .htaccess file to allow sharing of data between only two vhosts.

eaccelerator.name_space = ""

eaccelerator.check_mtime

On every hit eAccelerator will check the modification time of a script to see if it changed and needs to be recompiled. Although this is a lot faster then opening the file and compiling it, this still adds some overhead because a stat call needs to be done every time. This setting allows you to disable this check. The downside of disabling this check is that you need to manually clean the eAccelerator cache when you update a file.

By default this check is enabled.

eaccelerator.check_mtime = "1"

eaccelerator.filter

Determine which PHP files can be cached. You can specify the pattern (for example “*.php *.phtml”) the PHP script filename needs to match. If a pattern starts with “!”, the files that match that pattern are excluded from the cache. Default value is “” which will cache all scripts PHP compiles.

Please note that eaccelerator.filter doesn’t work on a URL basis but rather on the absolute filesystem path, so a filter of !/home* would exclude all scripts in /home from being cached.

Multiple patterns need to be seperated by spaces or tabs, but not commas.

eaccelerator.filter = ""

eaccelerator.shm_max

By default there is no limit on the maximum size a user can put in shared memory with functions like eaccelerator_put, the maximum size is controlled by this setting. This value is the maximum size that can be put in the cache, the size is given in bytes (10240, 10K, 1M). The default value is “0″ which disables the limit.

This setting doesn’t affect the maximum size for a script”’

eaccelerator.shm_max = "0"

eaccelerator.shm_ttl

When eAccelerator doesn’t have enough free shared memory to cache a new script it will remove all scripts from shared memory cache that haven’t been accessed in at least shm_ttl seconds. By default this value is set to “0″ which means that eAccelerator won’t try to remove any old scripts from shared memory.

eaccelerator.shm_ttl = "0"

eaccelerator.shm_prune_period

When eAccelerator doesn’t have enough free shared memory to cache a script it tries to remove old scripts if the previous try was made more then “shm_prune_period” seconds ago. Default value is “0″ which means that eAccelerator won’t try to remove any old script from shared memory.

eaccelerator.shm_prune_period = "0"

eaccelerator.shm_only

Enable or disable caching of compiled scripts on disk. This has no effect on session data and content caching. Default value is “0″ which allows eAccelerator to use disk and shared memory cacche for scripts.

eaccelerator.shm_only = "0"

eaccelerator.compress

When using the eaccelerator_content_* api eAccelerator can compress the content before saving it to memory. By default this is set to “1″, to disable compression set it to “0″.

eaccelerator.compress = "1"

eaccelerator.compress_level

Compression level used for content caching. Default value is “9″ which is the maximum compression level.

eaccelerator.compress_level = "9"

eaccelerator.keys | session | content

These settings control the places eAccelerator may cache user content. Possible values are:

  • shm_and_disk cache data in shared memory and on disk (default value)
  • shm cache data in shared memory or on disk if shared memory is full or data size greater then “eaccelerator.shm_max”
  • shm_only cache data in shared memory
  • disk_only cache data on disk
  • none don’t cache data
eaccelerator.keys     = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content = "shm_and_disk"

The webinterface

eAccelerator can be managed through a webinterface. From version 0.9.5 this webinterface has been fully implemented in php so the settings have been changed.


taken from : http://techgurulive.com/2009/02/02/how-to-install-and-configure-the-eaccelerator-php-cache-on-apache/

Belum sempat nerjemahin.. ntar aja soale lagi seru coba2


108 komentar:

p4hal4 said...

halo ainur, peinspirasiku...
daku lama tak sua dirimu...
pa kabarmu..
hehe

ainur said...

halo juga
daku ga tau dirimu..
apa kabar juga

Anonymous said...

easy classical violin music the jones music group uk
music producer spud too tight stan rogers music festival seconhand serenade maybe music video music teacher fontwell
music shopping uk

Anonymous said...

What is lotion for accutane dry skin or accutane in alaska and free accutane?
You can Buy Accutane Online in canada and usa cheap now.
A district of columbia accutane lawyer.

Anonymous said...

valium diazepam manufacturers dosage of diazepam for sleep - diazepam 2 mg recreational

Anonymous said...

ambien no prescription ambien side effects nausea - what does ambien pill look like

Anonymous said...

generic xanax online is buying xanax online legal - xanax pills round

Anonymous said...

buy ambien online legally ambien sale next day delivery - zolpidem er same ambien cr

Anonymous said...

buy ativan online ativan addiction stories - legal buy ativan online

Anonymous said...

ativan without prescription quitting ativan side effects - lorazepam 1 mg igual que orfidal

Anonymous said...

zolpidem ambien ambien side effects eating - side effects to zolpidem

Anonymous said...

diazepam 5mg valium 10mg para que serve - valium drug detection

Anonymous said...

ambien 10 mg ambien kills - ambien cr yellow white

Anonymous said...

buy xanax online pills similar to xanax - xanax overdose much

Anonymous said...

diazepam dosage for dogs order diazepam - roche diazepam online

Anonymous said...

generic zolpidem zolpidem tartrate generic ambien - can buy ambien mexico

Anonymous said...

xanax anxiety long can xanax high last - natural drug xanax

Anonymous said...

buy lorazepam ativan withdrawal from 1 mg - side effects of ativan 1mg

Anonymous said...

buy zolpidem online zolpidem buy online no prescription - does generic zolpidem work

Anonymous said...

buy valium online taking valium depression - purchase valium online no prescription

Anonymous said...

buy diazepam online buy diazepam online australia - diazepam withdrawal death

Anonymous said...

ativan online ativan .5mg overdose - ativan gluten free

Anonymous said...

valium diazepam diazepam high - diazepam lowest dose

Anonymous said...

buy xanax online cheap no prescription what does generic xanax look like pill - xanax for anxiety in children

Anonymous said...

diazepam no prescription can u buy valium online - diazepam drug addiction

Anonymous said...

order ativan ativan and drinking alcohol - ativan withdrawal and muscle aches

Anonymous said...

cheap diazepam online diazepam dosage conscious sedation - diazepam cats

Anonymous said...

ativan drug buy lorazepam online no prescription needed - buy ativan no prescription

Anonymous said...

diazepam dosage where can buy diazepam in usa - 5mg diazepam vs 2mg xanax

Anonymous said...

ativan online pharmacy ativan withdrawal with valium - get off ativan addiction

Anonymous said...

generic xanax what is better for anxiety xanax or valium - xanax benefits anxiety

Anonymous said...

where to buy xanax online xanax high 1 mg - do you withdrawal xanax

Anonymous said...

buy ambien online buy ambien pills online - ambien drug interactions oxycodone

Anonymous said...

carisoprodol soma somanabolic muscle maximizer and all bonus programs - dosage of carisoprodol

Anonymous said...

buy generic ambien online ambien half life body - ambien class ii drug

Anonymous said...

soma muscle relaxant buy soma safely online - carisoprodol therapeutic range

Anonymous said...

carisoprodol without prescription snorting carisoprodol erowid - soma prescription drug abuse

Anonymous said...

buy valium online cheapest valium no prescription - valium severe depression

Anonymous said...

ambien no prescription ambien generic cheap - generic ambien 10mg cost

Anonymous said...

buy soma generic soma drug info - can i buy soma online

Anonymous said...

buy valium roche valium quick does work - valium yellow pill mg

Anonymous said...

buy soma online soma drug book - somanabolic muscle maximizer complaints

Anonymous said...

order valium online valium dosage conscious sedation - valium pharmacy no prescription

Anonymous said...

buy soma carisoprodol 350 high - buy soma from mexico

Anonymous said...

3Y3h4q2m2v quejas vigrx plus , [URL=http://vigrxplusindonesia.id.st/]review[/URL] 3s3h1p1z8n

Anonymous said...

5a3t7c8t5c vigrx plus enlargement exercises , [URL=http://buyvigrxplussouthafrica.lo.gs/]vigrx plus overdose[/URL] 9t1g5b5u7b

Anonymous said...

0q9h0e3a4e at bing , [URL=http://vigrxplusuk.lo.gs/]click here![/URL] 2Y3n6v4g6e

Anonymous said...

7z1q8j0z3h redirected here , [URL=http://vigrxplusaustralia.lo.gs/]see the post here[/URL] 7r9o7m3j0s

Anonymous said...

4a5w2f5g1d have a peek here , [URL=http://vigrxplusindia.ek.la/]linked here[/URL] 2Y3d7i8l1f

Anonymous said...

generic viagra viagra dosage frequency - buy viagra high street

Anonymous said...

All Saints University Of Medicine order prednisone - order prednisone online http://www.prednisone4sale.com/#order-prednisone-online

Anonymous said...

buy generic soma where to buy soma panties - soma online pharmacy

Anonymous said...

buy soma online purpose soma medication - generic soma pill identifier

Anonymous said...

Iron Prescription Medications buy diflucan online no prescription - diflucan no prescription http://www.diflucansaleonline.net/#diflucan-no-prescription , [url=http://www.diflucansaleonline.net/#order-diflucan-online-no-prescription ]order diflucan online no prescription [/url]

Anonymous said...

soma drug soma san diego box office - buy somatropin human growth hormone

Anonymous said...

soma medication buy soma online with a mastercard - soma lofts for sale san francisco

Anonymous said...

cialis cost cheap cialis us - cheapest cialis online us

Anonymous said...

cheap cialis buy cialis japan - cialis daily pill

Anonymous said...

tmd cytotec 200mg - buy cytotec http://www.cytoteconlinecheap.net/#order-cytotec, [url=http://www.cytoteconlinecheap.net/#order-cytotec]generic cytotec no prescription [/url]

Anonymous said...

xrh strattera sale - atomoxetine online pharmacy http://www.stratteraforsale.net/#atomoxetine-online-pharmacy , [url=http://www.stratteraforsale.net/#strattera-without-prescription ]strattera without prescription [/url]

Anonymous said...

xanax online xanax for social anxiety - xanax yellow pill

Anonymous said...

generic xanax xanax overdose time - xanax mylan a1

Anonymous said...

buy tramadol tramadol hcl 50 mg uses - tramadol hcl lexapro

Anonymous said...

Hello, ativan cost - ativan online no prescription http://paniedemou.com/#ativan-online-no-prescription , [url=http://paniedemou.com/#buy-ativan ]buy ativan [/url]

Anonymous said...

carisoprodol 350 mg cost of carisoprodol 350 mg - carisoprodol 350 mg soma

Anonymous said...

xanax online does military drug test xanax - different mg xanax pills

Anonymous said...

buy tramadol online tramadol dosage in adults - buy tramadol faq

Anonymous said...

buy tramadol online 2 50 mg tramadol - buy tramadol with cod delivery

Anonymous said...

buy tramadol online tramadol withdrawal zaps - buy tramadol hcl online

Anonymous said...

generic xanax 5 xanax get high - mixing xanax and alcohol blackout

Anonymous said...

buy tramadol online buy tramadol online for dogs - buy tramadol online australia no prescription

Anonymous said...

buy carisoprodol carisoprodol vs hydrocodone - buy cheap carisoprodol online

Anonymous said...

buy cialis online cheap cialis canadian - cialis cheap

Anonymous said...

xanax online xanax or klonopin - xanax withdrawal .5mg

Anonymous said...

cialis online online pharmacy usa generic cialis - cialis daily use free trial

Anonymous said...

buy cialis online buy cialis ebay - cialis reviews photos

Anonymous said...

buy xanax online how get xanax online - many xanax pills bar

Anonymous said...

xanax online xanax effects pregnancy - drug facts of xanax

Anonymous said...

order alprazolam no prescription difference between generic xanax regular - xanax side effects rage

Anonymous said...

buy cialis online buy cialis online canadian pharmacy - generic cialis 60 mg

Anonymous said...

xanax online what does xanax pills do to you - xanax long term side effects

Anonymous said...

cialis online cialis online nederland - buy cheap cialis online no prescription

Anonymous said...

http://buytramadolonlinecool.com/#73892 signs of tramadol overdose - tramadol dosage sr

Anonymous said...

http://www.integrativeonc.org/adminsio/buyklonopinonline/#use klonopin used get high - klonopin side effects mood swings

Anonymous said...

buy tramadol online tramadol hcl 93 58 - took 3 50mg tramadol

Anonymous said...

http://landvoicelearning.com/#74967 tramadol ultram hcl - tramadol 20mg dogs

Anonymous said...

buy tramadol tablets ultram better than tramadol - how to order tramadol online

Anonymous said...

buy tramadol buy tramadol online us - can you really buy tramadol online

Anonymous said...

tramadol 50 mg tramadol overdose how much does it take - tramadol 4h2

Anonymous said...

buy klonopin online que es el klonopin - where to buy klonopin online

Anonymous said...

buy tramadol online tramadol hcl opiate - tramadol vs codeine

Anonymous said...

buy klonopin online klonopin side effects kidney - 2mg generic klonopin

Anonymous said...

http://landvoicelearning.com/#63987 tramadol typical dosage - buy tramadol online with cod

Anonymous said...

buy tramadol tramadol death by overdose - tramadol for dogs max dose

Anonymous said...

tramadol online tramadol ultram dosage - buy tramadol online overnight delivery

Anonymous said...

http://blog.dawn.com/dblog/buy/#blog tramadol online illegal - tramadol hcl and alcohol

Anonymous said...

http://reidmoody.com/#65473 ativan sublingual 1mg side effects - dosage of ativan for anxiety

Anonymous said...

clonazepam no prescription 2mg of klonopin and alcohol - klonopin 1 mg high

Anonymous said...

ways to buy ativan online ativan and high liver enzymes - ativan sublingual 1mg

Anonymous said...

http://ranchodelastortugas.com/#71453 prescription drug abuse xanax - .5 xanax effects

Anonymous said...

http://ranchodelastortugas.com/#37284 xanax quitting cold turkey - xanax no prescription overnight

Anonymous said...

cheap tramadol online tramadol 50 mg and ibuprofen - tramadol 50 mg how long does it last

Anonymous said...

carisoprodol 350 mg carisoprodol 350 mg pill - carisoprodol 350 mg drug test

Anonymous said...

buy tramadol online tramadol (ultram) 50 mg tablet - tramadol hcl long term effects

Anonymous said...

buy tramadol online buy tramadol online europe - tramadol high experience

Anonymous said...

xanax without a perscription xanax and alcohol yahoo answers - xanax overdose statistics

Anonymous said...

buy tramadol online with mastercard buy tramadol cheap online - buy tramadol no rx

Anonymous said...

как прекратить играть в казино or казино онлайн остров сокровищ or казино онлайн видео or онлайн казино это реально or рулетка онлайн вебмани or рулетка онлайн яндекс деньги