Có gì mới?
Việt Game - NET

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Cài file manager cho VestaCP

Minh Trí

Administrator
Tham gia ngày
03/12/2013
Bài viết
3.563
Reaction score
1.165
Điểm
50
Trong VestaCP thì cái file manager phải trả phí, sau đây là hướng dẫn bomb.
Chạy lệnh
nano /usr/local/vesta/conf/vesta.conf
Thêm trên cùng đoạn này
[HIDE]FILEMANAGER_KEY='SLIMJIM'[/HIDE]
Copy lại toàn bộ nội dung để làm bước kế tiếp
Giờ ta tạo 1 file ánh xạ để nó sao lưu
nano /usr/local/vesta/vesta.conf
Dán đoạn code bước 1 vào.

nano /usr/local/vesta/bin/v-activate-vesta-license
Thay đoạn sau
[HIDE]
# Activating license
v_host='
Hidden Content
Đăng ký/đăng nhập để xem nội dung.
'
answer=$(curl -
Hidden Content
Đăng ký/đăng nhập để xem nội dung.
$v_host/activate.php?licence_key=$license&module=$module)
check_result $? "cant' connect to vestacp.com " $E_CONNECT
[/HIDE]
Bằng
[HIDE]
# Activating license
#v_host='
Hidden Content
Đăng ký/đăng nhập để xem nội dung.
'
#answer=$(curl -s $v_host/activate.php?licence_key=$license&module=$module)
#check_result $? "cant' connect to vestacp.com " $E_CONNECT
answer=0
[/HIDE]
Lưu lại và tiếp
nano /usr/local/vesta/bin/v-backup-users
Sửa
$BIN/v-check-vesta-license >/dev/null
Thành
#$BIN/v-check-vesta-license >/dev/null
Tạo Cron

EDITOR=nano crontab -e
Dạn đoạn này vào
[HIDE]0 * * * * root cp -R /usr/local/vesta/vesta.conf /usr/local/vesta/conf/vesta.conf[/HIDE]
Lưu lại, đăng xuất VestaCP rồi login lại.
Chúc thành công!
 

Top Bottom