eAccelerator là chương trình tăng tốc truy cập web,để tăng tốc độ xử lý cho php và xử lý cho Apache qua việc cache lại các thao tác.
1. Download : http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6-rc1.tar.bz2
2. Giải nén, di chuyển vào thư mục đó.
3. Chạy lệnh:
#phpize
4. #./configure --enable-eaccelerator=shared
5. #make
6. #make install
7. Sau đó copy file eaccelerator.ini vào thư mục /etc/php.d/
#vi /etc/php.d/eaccelerator.ini
8. Tạo thư mục chứa cache cho eaccelerator
#mkdir /$PATH/eaccelerator
#chmod 777 /$PATH/eaccelerator
9. Restart lại Apache:
#service httpd restart
1. Download : http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6-rc1.tar.bz2
2. Giải nén, di chuyển vào thư mục đó.
3. Chạy lệnh:
#phpize
4. #./configure --enable-eaccelerator=shared
5. #make
6. #make install
7. Sau đó copy file eaccelerator.ini vào thư mục /etc/php.d/
#vi /etc/php.d/eaccelerator.ini
extension="eaccelerator.so"
eaccelerator.shm_size="1024"
eaccelerator.cache_dir="/$PATH/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.keys = "shm"
eaccelerator.sessions = "shm"
eaccelerator.content = "shm"
8. Tạo thư mục chứa cache cho eaccelerator
#mkdir /$PATH/eaccelerator
#chmod 777 /$PATH/eaccelerator
9. Restart lại Apache:
#service httpd restart

10 Framework PHP tốt nhất cho lập trình viên
MyBB là gì?
Các cách đánh index cho trường trong CSDL MySQL
Thay đổi múi giờ trong Apache và PHP
Thêm Widget các bài viết theo Label cụ thể trong Blogger
ASP.NET - Sử dụng kiểu phân trang Bootstrap trong Gridview
Cách thêm tổng số Bài viết / Bình luận vào Blogger
Sử dụng Crontab trên Linux
Không có nhận xét nào:
Đăng nhận xét