Linux Hosting

Hướng dẫn tạo domain, database, upload site trên DirectAdmin

Lưu ý: Hướng dẫn này được thực hiện trên DirectAdmin v1.56 I. Tạo domain II. Tạo database cho domain III. Upload site I. Tạo domain Để tạo domain, ta cần login vào tài khoản user. Ở đây, ta có thể thêm domain cho user hoặc chỉnh sửa domain hiện tại của user. Trước tiên, ta nên…

Hướng dẫn sử dụng SMTP Relay trên EXIM DirectAdmin

Hướng dẫn sử dụng SMTP Relay trên EXIM DirectAdmin 1) Mở file /etc/exim.conf , tạo gateway cho smtp relay. Tìm đến dòng và thêm nội dung sau: … begin transports smarthost_smtp:   driver = smtp   port = 25   #hosts_try_auth = smarthost_login   hosts_require_auth = * … 2) Tạo authenticators trong /etc/exim.conf : ……

Hướng dẫn nâng cấp CustomBuild 2.0 trên DirectAdmin

1) Nếu muốn nâng cấp CustomBuild 2.0 với các giá trị mặc định trong option.conf các bạn làm theo các bước sau: cd /usr/local/directadmin mv custombuild custombuild_1.x wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz tar xvzf custombuild.tar.gz cd custombuild ./build 2) Sau đó các options.conf mặc định sẽ được tạo ra. Nếu bạn muốn sử dụng tất cả các…

Hướng dẫn fix lỗi function mail() trên DirectAdmin

1. Mô tả lỗi Một số khách hàng triển khai mã nguồn code php trên VPS chạy DirectAdmin sử dụng function mail() để chạy trong code của mình. Tuy nhiên một số trường hợp gặp lỗi function mail() không chạy, gửi mail qua hàm mail() của php có báo gửi được nhưng không thấy đến…

Hướng dẫn fix lỗi ftp trên directadmin

Nếu chắn bạn đã tạo đúng user password ftp nhưng không thể đăng nhập được, bạn có thể làm theo hướng dẫn sau để fix lỗi ftp trên directadmin của hệ thống vào file /etc/proftpd.passwd Đầu tiên: cd /root Sau đó tạo file fix_ftp.sh vi fix_ftp.sh Ghi nội dung bên dưới vào file fix_ftp.sh #!/bin/sh PF=/etc/proftpd.passwd…

Hướng dẫn enable Exif trên directadmin

cd /usr/local/directadmin/custombuild 1. Nếu bạn dùng PHP5 CLI, phải tạo folder custom/ap2 mkdir -p custom/ap2 Sau đó copy configure/ap2/configure.php5 vào custom/ap2/configure.php5. cp configure/ap2/configure.php5 custom/ap2/configure.php5. 2. Nếu là PHP5 CGI, tạo folder custom/suphp mkdir -p custom/suphp Sau đó copy file copy configure/suphp/configure.php5 vào custom/suphp/configure.php5. cp configure/suphp/configure.php5 custom/suphp/configure.php5. Thêm vào cuối list “–enable-exif”. Nhớ cuối mỗi dòng…

Hướng dẫn disable IP check sessions trên DirectAdmin

Hướng dẫn disable IP check sessions trên DirectAdmin, đối với các bạn sử dụng 2 đường truyền khi login vào DirectAdmin sẽ bị logout…… Mặc định trong /usr/local/directadmin/conf/directadmin.conf disable_ip_check=0 Các bạn sửa thành disable_ip_check=1 Nếu không có dòng disable_ip_check các bạn thêm vào nhé Chúc các bạn thành công!

Hướng dẫn cài đặt Varnish Cache trên DirectAdmin

Cài đặt thư viện:  yum -y install automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig Với CentOS 5: rpm –nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release/varnish-release-3.0-1.el5.centos.noarch.rpm Với CentOS 6: rpm –nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el6/noarch/varnish-release/varnish-release-3.0-1.el6.noarch.rpm Cài đặt Varnish Cache: yum install varnish Sửa /etc/varnish/default.vcl Và thay đổi (Giả sử bạn sử dụng port 8080 cho apache), Đổi IP 123.123.123.123 thành  IP server của bạn:  backend…

Hướng dẫn cài đặt SSL free Let’t Encrypt trên DierctAdmin

1. Hướng dẫn cài đặt SSL free Let’t Encrypt trên DierctAdmin <img src=”https://i.imgur.com/8ZsLfyf.png”> 2. Thao tác trên GUI DirectAdmin Login DirectAdmin <img src=”https://i.imgur.com/l12U2WP.png”> Truy cập vào user của domain cần cài <img src=”https://i.imgur.com/Q0YN1A3.png”> Click “SSL Certificates” <img src=”https://i.imgur.com/UG0GrBl.png”> Tại mục “SSL Certificates” => “Free & automatic certificate from Let’s Encrypt” <img src=”https://i.imgur.com/KkbFOGZ.png”> Chờ qúa trình cài đặt SSL diễn…

Hướng dẫn cài đặt nhiều phiên bản PHP trên DirectAdmin

Trên hosting sử dụng DirectAdmin, khi website A muốn sử dụng php5.6 nhưng website B lại muốn sử dụng php7.2. Với server chạy web thông thường, việc build được song song 2 phiên bản php sẽ rất khó khăn. Nhưng với DirectAdmin, ta có thể build được 2, thậm chí là 4 phiên bản php…