Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

2/26/2013

SQL Server Backup File 太大, 無法 Copy 回來 Restore.

這次碰到的狀況是 SQL Server 的 Backup File 太大, 想要 Copy 到 Local 來做 Restore 不可行. 使用 UNC 透過網路來 Restore 也失敗, 所以想到一個方法, 因為 SQL Server 的 backup file 壓縮率都很高, 好幾百 MB 壓到最後可能只有 20MB. 所以先把 backup file 壓縮起來 Copy 到 local, 然後用 WinMount 這個軟體把 Compressed 檔案 Mount 進來當作一個 Hard Drive, 然後再讓 MS SQL 去做 Restore. 這樣就可以解決 Backup File 太大無法 Copy 回來 Restore 的問題.

4/29/2012

xdebug 在 Eclipse 不 work 的狀況

長久以來, 自從 Eclipse 換到 3.5 以後, xdebug 一直不能在 PHP 中使用.

今天偶然發現, 把一個設定加在 /etc/php5/conf.d/xdebug.ini 中即可.


zend_extension=/usr/lib/php5/20090626/xdebug.so
zend_debugger.allow_hosts=127.0.0.1, 192.168.9.0/255
zend_debugger.expose_remotely=always
xdebug.remote_enable=1 
;xdebug.remote_host="127.0.0.1"
;xdebug.remote_port=12345
;xdebug.remote_handler="dbgp"
;xdebug.remote_mode="req"
;xdebug.remote_connect_back=1

上面是從 Internet 找人家的檔案來改, 一個個 try 過之後, 發現只要 xdebug.remmote_enable=1, 就可以使用了.

4/10/2012

Classifieds Ad software - OSClass on Hostgator

朋友公司在找分類廣告軟體, 我找到兩個看起來不錯的, 都是 Open Source.

OSClass : http://osclass.org/

OpenClassifieds : http://open-classifieds.com/

其中 OSClass 已經安裝到 Hostgator 上測試, 看起來蠻 Ok 的.

在安裝到 Hostgator 的過程中, 一開始都有 500 Internal Server Error 出現, 找了半天, 找到原因.

如果有些目錄或檔案設定權限時, Group 或 Others 有 Write 權限的話, Hostgator 的 Server 就會出現 Error.

所以 Download OSClass 下來後, 先把檔案解開, 權限都改成 755, 再 Upload 到 Hostgator 上安裝, 就不會出現 500 Internal Error 了.