2010年5月5日 星期三

550 create directory operation failed


其實事情還沒結束....
在傳輸檔案時發生了

550 create directory operation failed
不用想也知道又是SElinux了...

# vi /etc/selinux/config
設定SELINUX=disable
重開機後...終於啊...
--
參考網頁
http://blog.techippo.org/archives/351
http://www.uncle.ws/2010/04/vsftp-550-create-directory-operation-failed/

2010年5月4日 星期二

500 OOPS: cannot change directory:/home/


裝完vsftpd後
client端出現

500 OOPS: cannot change directory:/home/

google大部分是 說

setsebool ftpd_disable_trans 1
但會出現

Could not change active booleans: Invalid boolean
其實是SElinux限制住了,所以改key

setsebool -P ftp_home_dir=1
就可以囉!

--
參考網頁
http://www.rossi.url.tw/wordpress/?p=204
http://wiki.ubuntu.org.cn/Vsftpd%E8%99%9A%E6%8B%9F%E7%94%A8%E6%88%B7%E8%AE%BE%E7%BD%AE
http://adai0620.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-406513-uid-68468.html

2010年4月30日 星期五

liux lvm 最大值

lvm2+linux2.6已經没有2T限制了

lvm裡VG(Volume Group, 捲軸群組)最多只可包含65534個PE(Physical Extend, PE, 實體延伸區塊),而每個PE的大小值介於8k~16G,且需為2的倍數。

若PE取最大值16G 則lvm最大可約1PB(65534 * 16G = 1,048,544G)。


參考網頁:
https://bbs.et8.net/bbs/archive/index.php/t-455273.html
http://www.novell.com/global/china/support/tids/7000032.html
http://linux.vbird.org/linux_basic/0420quota.php#the_pv

2010年4月28日 星期三

linux掛點進入單人模式,很多設定都變成read only,只要下以下指令即可

mount -n -o remount,rw

之前因為多設eth1且網段與eth0不一樣,導致開機很慢也不能登入
進入shell後下

ip link set eth1 down


關掉eth1重開即可

ps.ifconfig eth1 down只是暫時性的,無寫入系統

PHP + SQL Server

如果發生mssql_connect() [function.mssql-connect]: Unable to connect to server
是因為ntwdblib.dll的版本不符,我自身php5帶的是2000.2.8.0
除了將php.ini內extension=php_mssql.dll註解拿掉外還要做以下幾件事

1. http://www.dlldll.com/ntwdblib.dll_download.html下載ntwdblib.dll(2000.80.194.0)
2. 停止 Apache 服務(沒停止會說檔案使用中)
3. 將檔案複製到以下路徑
\windows\system32\
\php\ (php 安裝路徑)
\Apache2.2\bin\ (Apache 安裝路徑下的 bin\)
4. 啟動 Apache 服務

參考網頁:http://www.systn.com/data/news/39_hk.html
     http://www.hoyo.idv.tw/hoyoweb/document/hoyo/349.html

2010年3月17日 星期三

linux

ncftp
下載原始碼
./configure
make
make install

完成!

2010年1月18日 星期一

session_start()出現error

session_start();前面是不能帶有任何html輸出,這是大家都知道的。
但是重灌後突然發現之前的檔案有問題,出現

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at .... )
把檔案內文全刪只剩session_start();卻還是出現上述錯誤這就...
上網google後發現原來是UTF-8的BOM在做怪,只因重灌後直接用筆記本去修改結果造成寫入BOM。
用editplus->tools->preferences->files->utf-8 signature->always remove signature
再存一次檔就OK囉!

參考網頁:
http://blog.raienet.com/406
http://twpug.net/modules/smartfaq/faq.php?faqid=31
http://www.haixiait.com/article.asp?id=232
http://blog.planism.com/archives/2008/09/12/1701/%E7%94%A8-editplus-%E6%B6%88%E9%99%A4-utf-8-%E7%9A%84-bom