在apache 裡若要在登入作認證,只要在http.conf 裡的目錄下將
AllowOverride None
改成
AllowOverride All 即可
當然 .htaccess 要加上去的
在apache 裡若要在登入作認證,只要在http.conf 裡的目錄下將
AllowOverride None
改成
AllowOverride All 即可
當然 .htaccess 要加上去的
新的FreeBSD6.4 上面要跑mrtg,用ports安裝後,該裝的都裝了,還是有問題,Google後找到http://olympic-yancey.blogspot.com/2008/08/mrtgsnmputilpm.html他的文章有提到,因為勾選了SNMPv3的關係,故取消後再make reinstall後即可,再找一台來裝一下,用重新安裝SNMPv3的方式來解決看看
以下是抄來的
csh 者,在 /etc/csh.cshrc 加入:
setenv LC_CTYPE en_US.ISO8859-1
setenv LC_ALL zh_TW.Big5
setenv LANG zh_TW.Big5
bash 者,在 /etc/profile 加入
LC_CTYPE=en_US.ISO8859-1 ; export LC_CTYPE
LC_ALL=zh_TW.Big5 ; export LC_ALL
LANG=zh_TW.Big5 ; export LANG
samba 若是 standalone 的 security = user 的話,需要將 samba user 帳號,也建立在系統帳號裡,才能有uid 的權限
#adduser bing
&
#smbpasswd -a bing
#tar zxvf dhcp-4.1.0.tar.gz
#cd dhcp-4.1.0
#./configure –prefix=/usr/local/isc-dhcpd
(過程省略)
#make install clean
就裝好了
Continue Reading »
當更改aliases 之後postfix 要作 postalias 的動作
hash: 後加 aliases 檔的位置
postalias hash:/usr/local/etc/postfix/aliases
FreeBSD 6.2 mysql error message
停掉 mysqld ,然後用 –skip-grant-tables 參數去啟動 mysql
#mysqld_safe –user=mysql –skip-grant-tables &
#mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.67-log FreeBSD port: mysql-server-5.0.67_1
Continue Reading »
freebsd 找不到的網卡 marvell yukon 88E8056
因為onboard 的網卡找不到,今天請教了長輩,原dmesg看到是如下
miibus0:
amphy0:
amphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:80:c8:4e:a3:a6
以為onboard 的那一張,是amphy0 害我一直往 amphy 找
經長輩解釋,amphy 是辨視vr的
所以要用以下的方式 Continue Reading »
freebsd 6.3 install pure-ftpd config error
以一台剛灌好OS 6.3 的機器直接source 安裝pure-ftpd 用以下的參數去configure pure-ftpd
pure-ftpd-1.0.21]#./configure –with-altlog CLF –with-throttling –with-virtualchroot –with-rfc2640 –with-inetd –with-ftpwho –prefix=/usr/local/pure-ftpd
會出現以下的訊息
configure: error: iconv headers not found.
Continue Reading »
#pw groupadd ftpuser -g 21
#pw useradd ftpuser -u 21 -g ftpuser -c “ftphome” -d /home/ftphome -s /sbin/nologin
#chown ftpuser:ftpuser /home/ftphome
/usr/local/sbin/pure-ftpd -S ,3078 -a 5001 -w -O /var/log/pureftpd.log &
-a 登入者均為虛擬的root被限在該目錄裡
-S ,3078 代表用3078 來當ftp port 不加的話default 為 21 port
-O 定義log file
-w 使用FXP 的功能
在網路上找到pure-config.pl 的方式啟動 pure-ftpd ,它可以套用 config file
但前題是要改一下pure-config.pl 的 mode 變可執行
Continue Reading »