Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 07-09-2016, 04:44 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Tối ưu cài đặt Cache cho Directadmin
Tối ưu cài đặt Cache cho Directadmin

Tham khảo:

https://help.directadmin.com/item.php?id=400

1. Cài đặt

cd /usr/local/directadmin/custombuild
wget http://pecl.php.net/get/APC-3.1.13.tgz
tar xvzf APC-3.1.13.tgz
cd APC-3.1.13
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config

make
make install

2. xem kết quả và đường dẫn extension hiện ra khi cài đặt xong và lưu lại

3. vào vi /usr/local/lib/php.ini thêm vào các dòng sau:

extension=apc.so
apc.enabled=1
apc.shm_size=1000M
apc.ttl=7200
apc.user_ttl=7200
apc.enable_cli=1
apc.max_file_size=5M



extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"

===> thay đường dẫn lưu file extension xem ở bươc 2 vào

Chúc bạn thành công,
  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 05:04 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.