cd /usr/local/directadmin/custombuild ./build set ioncube yes ./build ioncube
cd /usr/local/directadmin/custombuild ./build update ./build set mysql 5.7 ./build set mysql_inst mysql ./build set mysql_backup yes ./build mysql ./build php n systemctl restart httpd
การติดตั้ง Razor 1. ดำเนินการ Download Razor จาก https://sourceforge.net/projects/razor/files/razor-agents/ โดยเลือก versions ที่ต้องการ # wget https://netix.dl.sourceforge.net/project/razor/razor-agents/2.85/razor-agents-2.85.tar.bz2 2. ดำเนินการแตกไฟล์ และรันคำสั่งเพื่อติดตั้ง # tar -xjf razor-agents-2.85.tar.bz2# cd razor-agents-2.85.tar.bz2# perl Makefile.PL# make# make install 3. ดำเนินการติดตั้ง ModulesForRazor # /scripts/perlinstaller Test::Simple# /scripts/perlinstaller Test::Harness# /scripts/perlinstaller Digest::SHA1# /scripts/perlinstaller File::Copy 4. ดำเนินการสร้าง Path ไฟล์ที่ต้องการใช้งาน # mkdir /var/spool/mqueue# chown mailnull:mail /var/spool/mqueue# chmod 755 /var/spool/mqueue 5. ดำเนินการสร้าง .razor # razor-admin -d -create -home=/var/spool/mqueue/.razor/# razor-admin -register -home=/var/spool/mqueue/.razor/# chmod 755 /var/spool/mqueue/.razor# chown -R mailnull:mail /var/spool/mqueue/.razor 6. ดำเนินการสร้างไฟล์ razor-whitelist # touch /var/spool/mqueue/.razor/razor-whitelist# chmod 644 /var/spool/mqueue/.razor/razor-whitelist# chown mailnull:mail /var/spool/mqueue/.razor/razor-whitelist 7. ดำเนินการแก้ไข Config ไฟล์ razor-agent.conf # # Razor2 config file # # Autogenerated by Razor-Agents v2.84 # Thu Sep 24 20:15:29 2020 # Created with all default values # # see razor-agent.conf(5) man page # debuglevel = 1 identity = identity ignorelist = 0 listfile_catalogue = servers.catalogue.lst listfile_discovery = servers.discovery.lst listfile_nomination = servers.nomination.lst logfile = razor-agent.log logic_method = 4 min_cf = ac razordiscovery = discovery.razor.cloudmark.com rediscovery_wait = 172800 report_headers = 1 turn_off_discovery = 0 use_engines = 4,8 whitelist = razor-whitelist razorhome = /var/spool/mqueue/.razor/ 8. ดำเนินการเปิดฟังก์ชั่น Razor ที่ไฟล์ /etc/mail/spamassassin/v310.pre # Razor2 - perform Razor2 message checks.#loadplugin Mail::SpamAssassin::Plugin::Razor2 9. ดำเนินการเปิดฟังก์ชั่น Razor ที่ไฟล์ /etc/mail/spamassassin/local.cf # Enable server-wide Vipul's Razor in Spamassassin # Remove razor_config line if you want to disable Vipul's Razor razor_config /var/spool/mqueue/.razor/razor-agent.conf 10. ดำเนินการ Restart spamd # /scripts/restartsrv_spamd การติดตั้ง DCC 1. ดำเนินการ Download DCC จาก https://www.dcc-servers.net/dcc/source/ โดยเลือก versions ที่ต้องการ # wget https://www.dcc-servers.net/dcc/source/dcc.tar.Z 2. ดำเนินการแตกไฟล์ และรันคำสั่งเพื่อติดตั้ง # tar -zxf dcc.tar.Z# cd dcc# ./configure# make# make install 3. ดำเนินการแก้ไข Config ไฟล์ dcc_conf # nano -w /var/dcc/dcc_confDCCD_ENABLE=offDCCIFD_ENABLE=on 4. ดำเนินการสร้าง Path ไฟล์ที่ต้องการใช้งาน # mkdir /var/spool/mqueue# chown mailnull:mail /var/spool/mqueue# chmod 755 /var/spool/mqueue 5. ดำเนินการรันคำสั่ง # cd /etc/rc.d/init.d# ln -s /var/dcc/libexec/rcDCC DCC# chkconfig --add DCC# /etc/rc.d/init.d/DCC start# ln -s /var/dcc/libexec/cron-dccd /etc/cron.daily/cron-dccd# /etc/rc.d/init.d/DCC stop > /dev/null 2>&1# /etc/rc.d/init.d/DCC start 6. ดำเนินการ Reset DCC log dir # /etc/rc.d/init.d/DCC stop# rm -rf /var/dcc/log# mkdir /var/dcc/log# chmod 710 /var/dcc/log# chown root:bin /var/dcc/log# /etc/rc.d/init.d/DCC start 7. ดำเนินการเปิดฟังก์ชั่น DCC ที่ไฟล์ /etc/mail/spamassassin/v310.pre # DCC - perform DCC message checks.## DCC is disabled here because it is not open source. See the DCC# license for more details.#loadplugin Mail::SpamAssassin::Plugin::DCC 8. ดำเนินการเปิดฟังก์ชั่น DCC ที่ไฟล์ /etc/mail/spamassassin/local.cf # Enable server-wide DCC in Spamassassin # Remove dcc_home line if you want to disable DCC dcc_home /var/dcc 9. ดำเนินการ Restart spamd # /scripts/restartsrv_spamd
โดยปกติ VPS DirectAdmin จะถูกสร้างมาจาก Template ซึ่งจะจำ Config เดิมที่ถูกตั้งค่าเอาไว้เช่น User ID, License ID และ IP เป็นต้น จึงจำเป็นต้องแก้ไข Config เพื่อให้ Server ทำงานได้อย่างถูกต้องดังนี้ 1. Update license cd /usr/local/directadmin/scripts ./getLicense.sh 123 1234 service directadmin restart *** 123 คือ User ID, 1234 คือ License ID ถ้า Error Stopping DirectAdmin: [ FAILED ] Starting DirectAdmin: [ OK ] แก้ไข killall -9 directadmin /etc/init.d/directadmin start ถ้าไม่หายให้ตรวจสอบ Port You have a firewall blocking port 2222. Number 2 is easy to check by simply running (only on redhat systems): /sbin/service iptables stop /sbin/chkconfig iptables off Then test directadmin again. If that didn't fix it, then you'd need to check your /var/log/directadmin/error.log to check for any errors as to why it isn't starting: tail /var/log/directadmin/error.log ถ้ายังไม่ได้ให้กลับไปทำตามข้อ 1 ข้อ 2 อีกครั้งตามลำดับ 2. แก้ไข Config หน้า Admin Control Panel 2.1 แก้ไข IP ที่ไฟล์ /usr/local/directadmin/data/admin/ip.list 2.2 mv IP เดิม(VM ที่สร้างจาก Template จะได้ IP เก่าติดมา) ที่ไฟล์ /usr/local/directadmin/data/admin/ips/203.78.103.27(สมมติ) เป็น IP ใหม่ 3. ลบ DNS เดิมที่เมนู DNS Administration 4. แก้ไข Hostname ที่ Administrator Settings 5. Update Directadmin ที่ Licensing / Updates
กรณีเกิดปัญหาไม่สามารถดำเนินการแก้ไขใดๆได้ เราสามารถ Submit Ticket ไปให้ Virtualizor Support เพื่อตรวจสอบและแก้ไขปัญหาได้ โดยมีขั้นตอนดังนี้ 1. เข้า https://www.softaculous.com/support/ 2. Open New Ticket 3. ใส่รายละเอียดที่จำเป็นดังนี้ Full Name: ชื่อ Email Address: ชื่อ Email ที่ต้องการให้ Virtualizor Support ตอบอีเมล์กลับ Telephone: Help Topic: Virtualizor Support Subject: หัวข้อปัญหา Message: รายละเอียดปัญหา Priority: High Server Details: รายละเอียด IP, Port, Username, Password *** ต้องเป็น IP ที่ Register Virtualizor License 4. Submit Ticket