سلام
این کش - کش بسیار مناسب جهت استفاده در سرورهای هاستینگ هستeAccelerator is a free open-source PHP accelerator & optimizer. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
eAccelerator stores compiled PHP scripts in shared memory and executes code directly from it. It creates locks only for a short time, while searching for a compiled PHP script in the cache, so one script can be executed simultaneously by several engines. Files that can't fit in shared memory are cached on disk only.
نکات:
طبق سایت فقط در حالت mod_php یا fastcgi جواب میده.
پیش نیاز طیف سایت رسمی:
نصب بسیار راحت هستکد PHP:* autoconf
* automake
* libtool
* m4
(جهت نصب در سی پنل میتونید از easyapache استفاده کنید )
یا اینکه به صورت زیر نصب کنید.
ابتدا اخرین نسخه رو از سایت
eAccelerator دانلود کنید.
بعد فایل رو اکسترکت کنید و داخل فولدر بشید.
و:
بعد از نصب مسیری که فایل SO در اون قرار داریه به شما داده میشه و این مسیر رو داشته باشید.کد PHP:phpize
./configure
make
make install
حلا نیاز به فعال کردن در php.ini دارید:
به جای ************ مسیر نصب رو مرحله قبل رو بزارید.
و مرحله اخر:کد PHP:
zend_extension="/*************/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_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
کد PHP:mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
و php -v روبزنید
می بینید که:
with eAccelerator
آپاچی رو ری استارت کنید.
مقدار eaccelerator.shm_size
میزان حافظه مصرفی هست میتونید بیشتر کنید بنا به نیاز.






پاسخ با نقل قول
