吉林十一选五开奖结果 > 知识库 > 网络编程 > PHP >

PHP

PHP交叉编译和移植

来源:中国IT实验室 作者:佚名 发表于:2013-07-23 17:57  点击:
配置和编译:此处为最简易的版本,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-
 配置和编译:此处为最简易的版本,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上输入//192.168.*.*/test.php,则在浏览器上显示php的信息

吉林十一选五开奖结果 www.ktn03.cn

    有帮助
    (0)
    0%
    没帮助
    (0)
    0%
  • 中国石化为万名返乡摩骑免费加油、寄包裹 2018-10-31
  • “2018上影之夜”姜文等为“谢晋经典电影回顾展”揭幕 2018-10-31
  • 法制日报:保护英烈权益要用好公益诉讼 2018-08-08
  • 【人民酒业﹣现场直击】 “我是品酒师·醉爱酱香酒”复赛第一场 2018-08-08
  • 807| 51| 684| 9| 475| 80| 607| 348| 377| 888|