Archive for the Technical Category

  • PHP 5.2 to PHP 5.3

    Posted in Administrator Skills - 7 June 2010 15:54:43
  • การเปลี่ยน PHP จาก 5.2 ไปยัง 5.3 บน Windows เบื้องต้น ใช้งานไม่ได้ พบปัญหาที่ไฟล์  php5ts.dll แม้ว่าเราจะดาวโหลด PHP VC6 (Thread-safe) Compiled มาก็ตาม เมื่อไล่ดู พบว่า ปัญหาน่าจะมาจากไฟล์ php.ini มีที่รายละเอียดบางอย่างที่เปลี่ยนแปลงไป เลยลองก๊อปไฟล์ php.ini ของตัวใหม่ แทนที่ของตัวเก่าไปเลยก่อน พบว่าสามารถใช้งานได้ทันที ก็เลยต้องตามไปดูว่ามีรายละเอียด Configuration ใดที่เปลี่ยนแปลงไปบ้าง สำหรับการเปลี่ยนจาก PHP 5.2 ไปยัง 5.3

  • MySQL 5.1.37 with InnoDB Error

    Posted in Administrator Skills - 7 June 2010 05:18:44
  • When start MySQL service in Windows, it show error log as below

    100607  5:07:15 [ERROR] Plugin ‘InnoDB’ init function returned error.
    100607  5:07:15 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.

    100607  5:07:15 [ERROR] Plugin ‘InnoDB’ init function returned error.100607  5:07:15 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.

    I found some threads suggest to delete ‘ib_logfileX’ in data directory. Problem still occurs. I found this issue in MySQL bug tracker [42820]. Now, I am download new minor version of MySQL that they might be fixed this issue.

    From DirectAdmin Forum, delete ib_logfile0, ib_logfile1, ibdata1. Problem gone.

    WARNING: stop server, backup your data at first.

  • Windows Explorer Oftenly Crash in Windows7

    Posted in Administrator Skills - 21 February 2010 14:20:34
  • I have a problem that Windows Explorer had been crash many times when I explore harddisk directory. I didn’t install new software. I cannot find the root cause of this anomaly issue. Finally, when my Windows got crashed again, I attached explorer.exe to a debugger. Look in Call stack and module loaded.

    'explorer.exe': Loaded 'C:\Windows\explorer.exe'
    'explorer.exe': Loaded 'C:\Windows\System32\ntdll.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\kernel32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\advapi32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\sechost.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\gdi32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\user32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\lpk.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\usp10.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\shell32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\ole32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\ExplorerFrame.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\duser.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\dui70.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\imm32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msctf.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\powrprof.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\setupapi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\devobj.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\slc.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16385_none_2b4f45e87195fcc4\GdiPlus.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\secur32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\sspicli.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\propsys.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\cryptbase.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_fa645303170382f6\comctl32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\clbcatq.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\cryptsp.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\rsaenh.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\RpcRtRemote.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\actxprxy.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\sxs.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\ntmarta.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\Wldap32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\WindowsCodecs.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\apphelp.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\EhStorShell.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\ntshrui.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\srvcli.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\cscapi.dll'
    'explorer.exe': Loaded 'C:\Program Files\Common Files\TortoiseOverlays\TortoiseOverlays.dll'
    'explorer.exe': Loaded 'C:\Program Files\TortoiseSVN\bin\TortoiseStub.dll', Binary was not built with debug information.
    'explorer.exe': Loaded 'C:\Program Files\TortoiseSVN\bin\TortoiseSVN.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\shfolder.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\wininet.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\normaliz.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\urlmon.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\crypt32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msasn1.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\iertutil.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\version.dll'
    'explorer.exe': Loaded 'C:\Program Files\TortoiseSVN\bin\libapr_tsvn.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\ws2_32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\nsi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\mswsock.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_08e1a05ba83fe554\msvcr90.dll'
    'explorer.exe': Loaded 'C:\Program Files\TortoiseSVN\bin\libaprutil_tsvn.dll'
    'explorer.exe': Loaded 'C:\Program Files\TortoiseSVN\bin\intl3_tsvn.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_08e1a05ba83fe554\msvcp90.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msftedit.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msls31.dll'
    'explorer.exe': Loaded 'C:\Program Files\Common Files\Microsoft Shared\ink\tiptsf.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\profapi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\xmllite.dll'
    'explorer.exe': Loaded 'C:\Program Files\Internet Explorer\ieproxy.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\thumbcache.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\psapi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\shdocvw.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\ieframe.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\oleacc.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\IconCodecService.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\networkexplorer.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\linkinfo.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\StructuredQuery.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\winmm.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\networkitemfactory.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\dtsh.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\FirewallAPI.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\mpr.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\drprov.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\winsta.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\ntlanman.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\davclnt.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\davhlpr.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\wkscli.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\netutils.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\BtwNamespaceExt.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\rasapi32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\rasman.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\BtwNeLib.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\Btwapi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msi.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.762_none_c46a533c8a667ee7\mfc80.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18caf\msvcr80.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\btosif.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.762_none_c46a533c8a667ee7\mfc80u.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\comdlg32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\winspool.drv'
    'explorer.exe': Loaded 'C:\Windows\System32\btwpimif.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18caf\msvcp80.dll'
    'explorer.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_8.0.50727.762_none_fc42961a63b5a82b\mfc80ENU.dll', Binary was not built with debug information.
    'explorer.exe': Loaded 'C:\Windows\System32\bthprops.cpl'
    'explorer.exe': Loaded 'C:\Windows\System32\wintrust.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\wshbth.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\wpdshext.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\PortableDeviceApi.dll'
    'explorer.exe': Loaded 'C:\Program Files\UltraMon\RTSUltraMonHook.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\PortableDeviceTypes.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\EhStorAPI.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\npmproxy.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\fundisc.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\atl.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msxml6.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\fdProxy.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\fdWCN.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\WcnApi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\fdWNet.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL'
    'explorer.exe': Loaded 'C:\Windows\System32\winnsi.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\dfscli.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\browcli.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL'
    'explorer.exe': Loaded 'C:\Windows\System32\wship6.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\dnsapi.dll'
    'explorer.exe': Loaded 'C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL'
    'explorer.exe': Loaded 'C:\Windows\System32\rasadhlp.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\SearchFolder.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\MMDevAPI.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\wdmaud.drv'
    'explorer.exe': Loaded 'C:\Windows\System32\ksuser.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\avrt.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\AudioSes.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\mssprxy.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\msacm32.drv'
    'explorer.exe': Loaded 'C:\Windows\System32\msacm32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\midimap.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\FWPUCLNT.DLL'
    'explorer.exe': Loaded 'C:\Windows\System32\dhcpcsvc.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\dhcpcsvc6.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\PhotoMetadataHandler.dll'
    'explorer.exe': Loaded 'C:\Program Files\Windows Photo Viewer\PhotoViewer.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\wtsapi32.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\d3d9.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\d3d8thk.dll'
    'explorer.exe': Loaded 'C:\Program Files\Windows Photo Viewer\PhotoBase.dll'
    'explorer.exe': Loaded 'C:\Program Files\ThinkPad\Bluetooth Software\BTKeyInd.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\zipfldr.dll'
    'explorer.exe': Loaded 'C:\Program Files\LinkShellExtension\HardlinkShellExt.dll'
    'explorer.exe': Loaded 'C:\Program Files\7-Zip\7-zip.dll', Binary was not built with debug information.
    'explorer.exe': Loaded 'C:\Windows\System32\devrtl.dll'
    'explorer.exe': Loaded 'C:\Windows\System32\userenv.dll'
    Unhandled exception at 0x7704f274 in explorer.exe: 0xC0000005: Access violation reading location 0xffffffffffffffff.
     
    Call Stack
    ===================
    >	ntdll.dll!000000007704f274()
     	[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
     	ntdll.dll!0000000077032163()
     	propsys.dll!000007fefbc12dbe()
     	propsys.dll!000007fefbc12d46()
     	propsys.dll!000007fefbc042aa()
     	propsys.dll!000007fefbc0437f()
     	propsys.dll!000007fefbc12b67()
     	propsys.dll!000007fefbc0472f()
     	shell32.dll!000007fefd54ea3b()
     	shell32.dll!000007fefd5192ec()
     	shell32.dll!000007fefd5ff4e3()
     	ExplorerFrame.dll!000007fef65909eb()
     	ExplorerFrame.dll!000007fef658ed13()
     	ExplorerFrame.dll!000007fef656b70c()
     	shell32.dll!000007fefd7c7e3c()
     	shell32.dll!000007fefd68f005()
     	shell32.dll!000007fefd53e58a()
     	shlwapi.dll!000007fefe973a7f()
     	ntdll.dll!000000007701f8eb()
     	ntdll.dll!0000000077019d9f()
     	kernel32.dll!0000000076dff56d()
     	ntdll.dll!0000000077033281()

    Now, I found temporary workaround. First, my explorer.exe get integrity check with the other. the explorer.exe MD5 has the same string mean that my explorer.exe is original and doesn’t infected by any virus. Some comments tell to fork new explorer process. I do it and it return the better result.

    At this time, my Windows Explorer has no more crash. but if it crash, it will terminate only process which handle that windows and not impact to all opened windows.

    For anyone who has the same problem…. you can try

    Folder Option > Launch folder windows in separate process.

    Hope these will be your workaround.

    My Systems: Windows7 x64.

  • Software Testing – Less Testing Time

    Posted in Developer Skills - 8 February 2010 02:18:40
  • ไปร่วมงาน Brainstorm กับเหล่าพี่ๆอาวุโสในวงการ Software Testing ตาม We Love Bug Blog ของพี่หนุ่ม ที่ร้านกาแฟวาวี ในหัวข้อ ทำอย่างไรถ้ามีเวลาเทสนิดเดียว. ทำเป็นรูปสรุปไว้ในเรื่องที่คุยดังนี้

    Summary of Brainstrom (WeLoveBug.com Session)

    ไปครั้งนี้เห็นประเด็นแปลกๆ ในองค์กรเล็กๆที่ Process ไม่ค่อยมีมาตรฐาน ทำให้เห็นภาพว่ากระบวนการจัดการที่ไม่ค่อยดี จะทำให้เกิดหายนะในองค์กรได้อย่างไร เนื้อหาที่พูดคุยวันนี้ก็ไม่เชิงว่าเป็นเรื่องของการแก้ปัญหาเมื่อเวลาเทสน้อยสักเท่าไหร่ เพราะยังมีประเด็นย่อยๆ เรื่องอื่นๆอีกหลายประเด็น ถือว่าเป็นการแลกเปลี่ยนมุมมองการทำงานในองค์กรที่มีรูปแบบโครงสร้างองค์กรที่แตกต่างกัน ทำให้แต่ละคนเจอปัญหาที่มันเกิดจากโครงสร้างบังคับขององค์กรเอง สนุกมาก วันนี้

    แถมท้ายวันนี้ด้วย Patch Update ของ WHMCS วงการ Hosting ที่ทำไว้นานแล้วแต่ยังไม่ได้ Release.

    WHMCS Thai PDF Patched Baseline 101