利来娱乐 > 知识库 > 网络编程 > 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.8unf.com.cn

    有帮助
    (0)
    0%
    没帮助
    (0)
    0%
  • 英拉获英国10年期签证?泰国政府“不知情” 2018-09-11
  • 园博会三大展馆亮点纷呈 2018-09-11
  • 端午出行怕拥堵 别慌,这里有一份出行指南 2018-09-07
  • 突发脑梗及时就医 离杭时这位日本织机专家泪流满面 2018-08-26
  • 谁在倒卖用户个人信息?内鬼或是泄露主要渠道 2018-08-10
  • 端午小长假龙舟赛成亮点 新疆和硕金沙滩景区游客量剧增 2018-08-10
  • “我和党报党网有个约会”在线征集活动作品要求 2018-07-19
  • 端午话药浴:探秘藏东山谷里的藏药浴 2018-07-19
  • 新余市通报4起违反中央八项规定精神典型问题 2018-06-23
  • 中国跳水队领队周继红:男子3米板夺冠令人振奋 2018-06-23