PHP交叉编译跟移植
程序员文章站
2022-05-28 13:16:11
...
PHP交叉编译和移植
配置和编译:此处为最简易的版本,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的信息
配置和编译:此处为最简易的版本,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的信息
相关文章
相关视频
上一篇: SEO解决方法
推荐阅读
-
交叉编译并移植tslib-1.21和QT4.8.5运行第一个嵌入式Qt程序
-
Ubuntu交叉编译tslib并移植到嵌入式Linux
-
【嵌入式】交叉编译 移植 i2cTool4.1 史上最详细
-
imx6null 移植华为云,交叉编译openssl
-
交叉编译PHP5、Nginx、Squid的详细步骤 squid翻译 squid的注释 squid代
-
PHP交叉编译和移植_PHP教程
-
【QT开发】S5P6818交叉移植QT4.8.6(编译)
-
cocos2dx 3.1.1移植安卓apk (lua项目交叉编译 mac环境下)
-
PHP交叉编译和移植
-
[请问达人]关于php5和libiconv进行交叉编译的有关问题[急]