Linux - DirectAdmin - LiteSpeed


#Command
#Tự động build vhost phù hợp với DA
#Tự động check restart LiteSpeed. Enable\Disable\Remove\Update DPlswsDA
#Được thêm vào cron mặc định chạy 1p/1lần
/usr/local/directadmin/scripts/lsws/script-dplswsda check

#Chuyển đổi giữa LiteSpeed và Apache.
/usr/local/directadmin/scripts/lsws/script-dplswsda switch (apache|litespeed)

#Nếu quá trình build vhost không chạy có thể dùng để chạy lại.
/usr/local/directadmin/scripts/lsws/script-dplswsda vhost

#Remove toàn bộ DPlswsDA
/usr/local/directadmin/scripts/lsws/script-dplswsda remove

#Dùng để build các lệnh trong giao diện sử dụng chạy cấu hình (Chỉ dùng lúc cài đặt)
/usr/local/directadmin/scripts/lsws/script-dplswsda exec

#Build PHP cho LiteSpeed theo cấu hình Apache (Nếu có Memcache XCache hoặc các extension thì cần build lại bằng command)
#Ruby đang phát triển
#Nếu thay đổi PHP của DA (Ví dụ từ php-cli sang php-cgi) Đổi như bình thường của DA rồi chạy lại build php cho LiteSpeed
/usr/local/directadmin/scripts/lsws/script-dplswsda build (php|ruby)
# enable rewrite





LightSpeed website báo 404 notfound
- Buil lại apache trên directadmin
- Kiểm tra file cấu /usr/local/lsws/conf/httpd_config.xml
<user>apache</user>
<group>apache</group>