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

    有帮助
    (0)
    0%
    没帮助
    (0)
    0%
    网站地图 大无限彩票上海快3 大无限彩票腾讯分分彩 大无限彩票韩式28
    申博游戏端下载 现金网开户送彩金 申博360网址 亚洲申博373839
    新凤凰彩票排列三、五 永保利娱乐怎麽赚钱 hg平台游戏现金开户 必赢亚洲官方网址登入
    名人彩票广西快三 大无限彩票斯洛伐克28 大无限彩票韩式28 大无限彩票台湾28
    大无限彩票北京赛车pk10 大无限彩票上海快3 大无限彩票上海时时乐 大无限彩票韩式1.5分彩
    897XTD.COM 1112932.COM XSB7777.COM 498SUN.COM 271SUN.COM
    9999XSB.COM 729XTD.COM 133TGP.COM 81s8.com 1113898.COM
    575sj.com 126jbs.com XSB318.COM 55TGP.COM 288TGP.COM
    983XTD.COM 87XTD.COM 987cw.com 838XTD.COM XSB158.COM