ການແກ້ໄຂ Message System ໃນລະບົບ

ບາງທ່ານອາດຈະເຄີຍພົບບັນຫາ Message ຂີ້ເຫຍື້ອຈາກລະບົບຫຼາຍ ແລະ ຖ້າຫາກຫຼາຍເກີນໄປຈະເຮັດໃຫ້ກົດເຂົ້າໄປເບິ່ງຂໍ້ຄວາມບໍ່ໄດ້ເນື່ອງຈາກ Server Timeout ນັ້ນເອງ ຂັ້ນຕອນການແກ້ໄຂງ່າຍໆດັ່ງນີ້ echo -n "" > /usr/local/directadmin/data/admin/tickets.list service directadmin restart

Read More

ການອັບເກຣດ Custombuild ເປັນ Version 2

ກວດເບິ່ງ Version ທີ່ /usr/local/directadmin/custombuild/build ຫາກຍັງເປັນ version 1.x ແລະຕ້ອງການຈະປ່ຽນເປັນ Version 2.x ເຮັດຕາມຂັ້ນຕອນດັ່ງນີ້ 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

Read More

ການຕິດຕັ້ງ mod_rpaf ເພື່ອໃຫ້ header ສົ່ງ IP ແທ້ໄປທີ່ reverse proxy

ບັນຫາທໍາອິດທີ່ພົບຫຼັງຈາກເຮົານໍາໃຊ້ Web Server ແບບ Reverse Proxy ຄື Web Server ປາຍທາງທີ່ຮັບ request ຈະເບິ່ງເຫັນ IP Address ເປັນ localhost ຫຼື 127.0.0.1 ນັ້ນເອງ ແກ້ບັນຫາງ່າຍໆໃຫ້ກັບ Apache ດ້ວຍການຕິດຕັ້ງ mod_rpaf ເພີ່ມເຕີມດັ່ງນີ້ cd /usr/local/src wget https://github.com/y-ken/mod_rpaf/archive/master.zip unzip master cd mod_rpaf-master /bin/sed -i "s/remote_/client_/g" mod_rpaf-2.0.c make && make install ແກ້ໄຂໄຟລ /etc/httpd/conf/extra/httpd-includes.conf ໂດຍເພີ່ມຂໍ້ຄວາມດັ່ງນີ້

Read More

ການຕິດຕັ້ງ extension php-ldap ໃນ Directadmin

yum -y install openldap-devel cd /usr/local/directadmin/custombuild mkdir -p custom/ap2 cp -fp configure/ap2/configure.php56 custom/ap2/configure.php56 ເພີ່ມຂໍ້ມູນລົງໄປທ້າຍໄຟລ configure.php56 --with-ldap=/usr \ --with-ldap-sasl=/usr ln -s /usr/lib64/libldap.so /usr/lib/libldap.so ln -s /usr/lib64/libldap_r.so /usr/lib/libldap_r.so

Read More

ການຕິດຕັ້ງ denyhost ເພື່ອປ້ອງກັນການ bruteforce

ປ້ອງກັນການ Brute force SSH ດ້ວຍ Deny Host ເຊິ່ງໂດຍຄ່າ default ຈະ block ໄອພີທີ່ພະຍາຍາມ Login ແລະ ຜິດເກີນ 5 ຄັ້ງ yum -y install denyhosts chkconfig denyhosts on service denyhosts restart ເຮົາສາມາດກວດສອບ list ທີ່ຖືກ block ໄດ້ທີ່ /etc/hosts.deny ເຮົາສາມາດເຮັດ whitelist ໄດ້ທີ່ /etc/hosts.allow

Read More

ການ manual renew ຟຣີ SSL ຈາກ Let’s Encrypt (Directadmin)

ວິທີນີ້ຄືການ renew SSL ຂອງທຸກ domain ໃນເຄື່ອງໂດຍ copy command ດ້ານລຸ່ມໄປຣັນໄດ້ເລີຍ cd /usr/local/directadmin/custombuild/ ./build clean all ./build update ./build update_da echo "letsencrypt_renewal_days=60" >> /usr/local/directadmin/conf/directadmin.conf echo "action=rewrite&value=letsencrypt" >> /usr/local/directadmin/data/task.queue /usr/local/directadmin/dataskq wget -O /usr/local/directadmin/scripts/custom/recreate_ssl_combined.sh https://putter.network/rtools/conf/directadmin/scripts/recreate_ssl_combined.sh chmod 700 /usr/local/directadmin/scripts/custom/recreate_ssl_combined.sh sh /usr/local/directadmin/scripts/custom/recreate_ssl_combined.sh service nginx restart service httpd restart

Read More