PHP交叉编译和移植
来源:互联网 发布:elecard streameye源码 编辑:程序博客网 时间:2024/05/13 22:42
配置和编译:此处为最简易的版本,disable掉了所有的扩展模块; [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 到开发板/tmp/network/sbin/php-cgi
3)、在/tmp/network/webpages/下创建test.php
[php]
phpinfo();
>
phpinfo();
>
4)、开发板上启动lighttpd
5)、在PC上输入http://192.168.*.*/test.php,则在浏览器上显示php的信息
./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 到开发板/tmp/network/sbin/php-cgi
3)、在/tmp/network/webpages/下创建test.php
[php]
phpinfo();
>
phpinfo();
>
4)、开发板上启动lighttpd
5)、在PC上输入http://192.168.*.*/test.php,则在浏览器上显示php的信息
0 0
- PHP交叉编译和移植
- PHP交叉编译和移植
- Python交叉编译和移植
- OpenSSH交叉编译和移植
- Android移植和交叉编译
- Python交叉编译和移植
- wireless-tools移植和交叉编译
- Python 基于arm 交叉编译和移植
- wireless-tools移植和交叉编译
- wireless-tools移植和交叉编译
- qt应用程序的交叉编译和移植
- x264的交叉编译和移植
- madplay移植-交叉编译
- 交叉编译库移植
- busybox交叉编译+移植
- valgrind交叉编译移植
- QT4.4.3 交叉编译环境搭建和移植
- QT/E的交叉编译环境的搭建和移植
- DOS 命令笔记
- Linux中断(interrupt)子系统之一:中断系统基本原理
- 关于 log4j.additivity的说明
- 设置mysql远程连接root权限
- Android开发,你应该知道的
- PHP交叉编译和移植
- Asp.net 加密解密类
- php数据库操作类代码
- 【Unity3D】【NGUI】如何使用新的Event事件
- playframework中使用JsTree
- sublime下用快捷键直接运行cocos2dx项目
- Asp.net 获取服务器信息
- 海康 PTZ HTTP控制
- 程序代码,常量,局部变量,全局变量,在内存中的储存位置