主页 > 知识库 > 网络编程 > 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上输入http://wnsrcptwbg.517xtd.com*.*/test.php,则在浏览器上显示php的信息

    有帮助
    (0)
    0%
    没帮助
    (0)
    0%
    网站地图 99彩票福彩3D 99彩票北京赛车 99彩票新疆时时彩
    太阳城申博官方代理 太阳城开户 太阳城娱乐城官方 申博真钱骰宝
    好彩客安卓版直营网 博狗集團网站登入 添运国际娱乐登入 彩55香港分分彩
    威尼斯人彩票河北快三 99彩票江苏快三 威尼斯人彩票韩式28 99彩票北京PK拾
    99彩票台湾5分彩 威尼斯人彩票幸运农场 威尼斯人彩票香港五分彩 威尼斯人彩票江苏快三
    22TGP.COM 811TGP.COM vi138.com 986tt.com 1116118.COM
    196psb.com XSB718.COM 193SUN.COM 18csb.com 8TFS.COM
    XSB868.COM 44sbsun.com XSB687.COM XSB886.COM 592ib.com
    XSB7777.COM 157PT.COM 718sj.com XSB345.COM 687XTD.COM