自從lighttpd更新到1.4.20後,原本跑的好好的spawn-fcgi就停住了,不曉得是否跟gslin這一篇所提的有關,反正後來只好用1.40.19的版本。
現在spawn-fcgi從lighttpd中獨立出來。試了一下,完全正常。
Release: spawn-fcgi 1.6.0
read on
現在spawn-fcgi從lighttpd中獨立出來。試了一下,完全正常。
Release: spawn-fcgi 1.6.0
#!/bin/sh
set -- `ping -c 5 -t 4 202.145.138.1 | grep loss`
# 202.145.138.1 --> TTN DNS
LOSS=$7
if [ "$LOSS" = "100.0%" ]; then
pkill -9 ppp
sleep 15
ppp -ddial pppoe
fi
#!/bin/sh
set -- `nslookup monkeybiz.info | grep Address`
DNS=$4
set -- `ifconfig tun0 |grep inet`
tun=$2
if [ "$DNS" = "$tun" ]; then
else
/usr/local/etc/rc.d/ddclient restart
fi
daemon=1800 # check every 1800 seconds
syslog=yes # log update msgs to syslog
#mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=no # use ssl-support. Works with
## single host update
protocol=dnspark, \
login=login-name, \
password=passwd \
abcdefg.com
use=web, web=ipdetect.dnspark.com, web-skip='Current Address:'
cgi.fix_pathinfo = 1Lighttpd中MySQL要選。
"mod_fastcgi", 要打開。記得還要自己 touch 記錄檔。
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.sock", 這裡要改成這樣
"bin-path" => "/usr/local/bin/php-cgi" 這裡也是
)
)
)
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile ="/path/to/.htpasswd"
auth.require = ( "/要隱藏起來的地方" =>
(
"method" => "basic",
"realm" => "不要進來",
"require" => "user=xxxxx"
)
)
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
alias csup csup -g -L 2
alias rm rm -i
alias vi vim
alias su su -
alias df df -h
alias du du -h
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
set autolist
set autoexpand
set recexact
set autocorrect
set correct = all
set prompt3 = "%SDo you mean [%R] (y/n/e) ? "
if ( $tty =~ ttyv* ) then
setenv TERM cons25
else
setenv TERM xterm-color
endif
setenv EDITOR vim
setenv PAGER less
setenv BLOCKSIZE K
setenv PACKAGEROOT http://ftp3.tw.freebsd.org
setenv CLICOLOR
setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx
setenv LANG zh_TW.UTF-8
setenv LC_TIME en_US.UTF-8
if ($?prompt) then
# An interactive shell -- set some stuff up
#set prompt = "`/bin/hostname -s`# "
set prompt = "%B%{^[[32m%}%n:%~%#"
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
#caption always "%{wb}[%M %d %C %a] Load: %l %-Lw%{Wk}%50>%n%f* %t%{-}%+Lw%< "
caption always "%{wb} %-Lw%{Wk}%50>%n%f* %t%{-}%+Lw%< "
hardstatus alwayslastline "%=%{..K}%e %{..Y} %M %d %{..G}%c %{..W} Load: %l %{wb}"
defutf8 on
defc1 off
defencoding utf8
bind b encoding big5 utf8 #^A+b Big5轉utf-8
bind u encoding utf8 utf8 #^A+u 轉utf-8
attrcolor b ".I"
attrcolor i "+b"
# tell screen how to set colors. AB = background, AF=foreground
# erase background with current bg color
term xterm
termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
defbce "on
set cindent
set hls
set nocompatible
set sw=2
set background=dark
syntax on
highlight Comment ctermfg=darkcyan
highlight Search term=reverse ctermbg=4 ctermfg=7
set tabstop=4
hi Normal guifg=White guibg=DarkBlue
set autoindent
set shiftwidth=4
set nobackup
set ru
set fileencoding=utf-8
set encoding=utf-8
set termencoding=utf-8
set fileencodings=utf-8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1
set ambiwidth=double
none1@pci2:4:0: class=0x028000 card=0x25611814 chip=0x03011814 rev=0x00 hdr=0x00Google的結果,找到解決方法,以module載入。
vendor = 'Ralink Technology, Corp'
class = network
ral0@pci2:4:0: class=0x028000 card=0x25611814 chip=0x03011814 rev=0x00 hdr=0x00
vendor = 'Ralink Technology, Corp'
class = network
default:
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
disable lqr ipv6cp
set log Phase tun
add default HISADDR
enable dns
pppoe:
set device PPPoE:rl0 #請參閱系統中網卡代號
set authname xxxxxx #連線帳號
set authkey xxxxxx #連線密碼
# ppp -ddial pppoe
ppp_enable="yes"
ppp_mode="ddial"
ppp_nat="no"
ppp_profile="pppoe"