配置和編譯:此處為最簡易的版本迫吐,disable掉了所有的擴(kuò)展模塊; [plain]
./configure --prefix=/home/pub/johnny/network/install-php --host=mips-linux-gnu --datadir=/home/pub/johnny/network/install-php/data --disable-FEATURE --disable-all "CC=mips-linux-gnu-gcc -EL" "CFLAGS=-EL" "LDFLAGS=-EL"
make
make istall
./configure --prefix=/home/pub/johnny/network/install-php --host=mips-linux-gnu --datadir=/home/pub/johnny/network/install-php/data --disable-FEATURE --disable-all "CC=mips-linux-gnu-gcc -EL" "CFLAGS=-EL" "LDFLAGS=-EL"
make
make istall
4娘纷、測試:
1)端辱、修改fastcgi.conf
添加:
[plain]
fastcgi.server += (
"/test.php" =>
((
"socket" => "/tmp/lighttpd.test.event.socket",
"bin-path" => "/tmp/network/sbin/php-cgi",
# "bin-path" => "/home/pub/johnny/network/install-php/bin/php-cgi",
# "bin-path" => "/tmp/NMP/bin/test.php",
"max-procs" => 1,
# "host" => "127.0.0.1",
# "port" => 8081,
"check-local" => "disable",
))
)
fastcgi.server += (
"/test.php" =>
((
"socket" => "/tmp/lighttpd.test.event.socket",
"bin-path" => "/tmp/network/sbin/php-cgi",
# "bin-path" => "/home/pub/johnny/network/install-php/bin/php-cgi",
# "bin-path" => "/tmp/NMP/bin/test.php",
"max-procs" => 1,
# "host" => "127.0.0.1",
# "port" => 8081,
"check-local" => "disable",
))
)
2)姜骡、把/home/pub/johnny/network/install-php/bin/php-cgi copy 到開發(fā)板/tmp/network/sbin/php-cgi
3)馆蠕、在/tmp/network/webpages/下創(chuàng)建test.php
[php]
phpinfo();
>
phpinfo();
>
4)滓侍、開發(fā)板上啟動(dòng)lighttpd
5)绍傲、在PC上輸入http://192.168.*.*/test.php憾儒,則在瀏覽器上顯示php的信息
藍(lán)隊(duì)云 - 領(lǐng)先的云服務(wù)器规哲、服務(wù)器租用托管跟啤、域名注冊(cè)提供商