j4b3r
March 18th, 2013, 19:09
سلام
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 جواب میده.
پیش نیاز طیف سایت رسمی:
* autoconf
* automake
* libtool
* m4
نصب بسیار راحت هست
(جهت نصب در سی پنل میتونید از easyapache استفاده کنید )
یا اینکه به صورت زیر نصب کنید.
ابتدا اخرین نسخه رو از سایت
eAccelerator (http://eaccelerator.net/) دانلود کنید.
بعد فایل رو اکسترکت کنید و داخل فولدر بشید.
و:
phpize
./configure
make
make install
بعد از نصب مسیری که فایل SO در اون قرار داریه به شما داده میشه و این مسیر رو داشته باشید.
حلا نیاز به فعال کردن در php.ini دارید:
به جای ************ مسیر نصب رو مرحله قبل رو بزارید.
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"
و مرحله اخر:
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
و php -v روبزنید
می بینید که:
with eAccelerator
آپاچی رو ری استارت کنید.
مقدار eaccelerator.shm_size
میزان حافظه مصرفی هست میتونید بیشتر کنید بنا به نیاز.
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 جواب میده.
پیش نیاز طیف سایت رسمی:
* autoconf
* automake
* libtool
* m4
نصب بسیار راحت هست
(جهت نصب در سی پنل میتونید از easyapache استفاده کنید )
یا اینکه به صورت زیر نصب کنید.
ابتدا اخرین نسخه رو از سایت
eAccelerator (http://eaccelerator.net/) دانلود کنید.
بعد فایل رو اکسترکت کنید و داخل فولدر بشید.
و:
phpize
./configure
make
make install
بعد از نصب مسیری که فایل SO در اون قرار داریه به شما داده میشه و این مسیر رو داشته باشید.
حلا نیاز به فعال کردن در php.ini دارید:
به جای ************ مسیر نصب رو مرحله قبل رو بزارید.
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"
و مرحله اخر:
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
و php -v روبزنید
می بینید که:
with eAccelerator
آپاچی رو ری استارت کنید.
مقدار eaccelerator.shm_size
میزان حافظه مصرفی هست میتونید بیشتر کنید بنا به نیاز.