推荐设备MORE

莲花企业网站建设—优势对比

莲花企业网站建设—优势对比

行业知识

PHP交叉式编译程序和移殖

日期:2021-02-17
我要分享
配备和编译程序:这里为最简单的版本号,disable没了全部的拓展控制模块; [plain] ./configure --prefix=/home/pub/johnny/ --host=mips-linux-gnu --datadir=/home/pub/johnny//data --disable-FEATURE --disable-all CC=mips-
配备和编译程序:这里为最简单的版本号,disable没了全部的拓展控制模块; [plain]
./configure --prefix=/home/pub/johnny/ --host=mips-linux-gnu --datadir=/home/pub/johnny//data --disable-FEATURE --disable-all CC=mips-linux-gnu-gcc -EL CFLAGS=-EL LDFLAGS=-EL
make
make istall
./configure --prefix=/home/pub/johnny/ --host=mips-linux-gnu --datadir=/home/pub/johnny//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/-cgi ,
# bin-path = /home/pub/johnny//bin/php-cgi ,
# bin-path = /tmp/NMP/ ,
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/-cgi ,
# bin-path = /home/pub/johnny//bin/php-cgi ,
# bin-path = /tmp/NMP/ ,
max-procs = 1,
# host = 127.0.0.1 ,
# port = 8081,
check-local = disable ,
))
)
2)、把/home/pub/johnny//bin/php-cgi copy 到开发设计板/tmp/-cgi
3)、work/
[php]

phpinfo();

phpinfo();

4)、开发设计板上起动lighttpd
5)、在PC上键入test.php,则在访问器上显示信息php的信息内容