一:准备工作
更新/etc/opkg.conf里面的源为
src/gz packages http://downloads.openwrt.org/backfire/10.03.1-rc4/brcm63xx/packages
二:漫长的过程
opkg update
opkg install objdump
mkdir /mnt/sdb1/temp
cd /mnt/sdb1/temp
wget http://downloads.openwrt.org/backfire/10.03/brcm63xx/packages/binutils_2.19.1-3_brcm63xx.ipk
tar zxvf binutils_2.19.1-3_brcm63xx.ipk
tar zxvf data.tar.gz
cp usr/mips-openwrt-linux-uclibc/bin/ar /usr/bin
ar
opkg install debootstrap
mkdir /mnt/sdb1/debian_mips
debootstrap --arch=mips --variant=minbase squeeze /mnt/sdb1/debian_mips http://mirrors.geekbone.org/debian/
mount -o bind /proc /mnt/sdb1/debian_mips/proc
mount -o bind /dev /mnt/sdb1/debian_mips/dev
chroot /mnt/sda1/debian_mips /bin/bash
apt-get update
apt-get lighttpd mysql-server php5 php5-cgi php5-mysql php5-gd
配置/etc/lighttpd/lighttpd.conf
server.modules项增加一行,内容为:
“mod_fastcgi”
还需要在文件末尾加下面的内容:
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php.socket",
"bin-path" => "/usr/bin/php5-cgi"
)
)
)
并且更改网站目录为fat32盘的www文件夹
更新/etc/opkg.conf里面的源为
src/gz packages http://downloads.openwrt.org/backfire/10.03.1-rc4/brcm63xx/packages
二:漫长的过程
opkg update
opkg install objdump
mkdir /mnt/sdb1/temp
cd /mnt/sdb1/temp
wget http://downloads.openwrt.org/backfire/10.03/brcm63xx/packages/binutils_2.19.1-3_brcm63xx.ipk
tar zxvf binutils_2.19.1-3_brcm63xx.ipk
tar zxvf data.tar.gz
cp usr/mips-openwrt-linux-uclibc/bin/ar /usr/bin
ar
opkg install debootstrap
mkdir /mnt/sdb1/debian_mips
debootstrap --arch=mips --variant=minbase squeeze /mnt/sdb1/debian_mips http://mirrors.geekbone.org/debian/
mount -o bind /proc /mnt/sdb1/debian_mips/proc
mount -o bind /dev /mnt/sdb1/debian_mips/dev
chroot /mnt/sda1/debian_mips /bin/bash
apt-get update
apt-get lighttpd mysql-server php5 php5-cgi php5-mysql php5-gd
配置/etc/lighttpd/lighttpd.conf
server.modules项增加一行,内容为:
“mod_fastcgi”
还需要在文件末尾加下面的内容:
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php.socket",
"bin-path" => "/usr/bin/php5-cgi"
)
)
)
并且更改网站目录为fat32盘的www文件夹