<blockquote id="eyki6"></blockquote>
  • <blockquote id="eyki6"><samp id="eyki6"></samp></blockquote>
    <blockquote id="eyki6"><blockquote id="eyki6"></blockquote></blockquote><label id="eyki6"><object id="eyki6"></object></label>
  • <blockquote id="eyki6"><samp id="eyki6"></samp></blockquote>
    主页 > 知识库 > 网络编程 > 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://192.168.*.*/test.php,则在浏览器上显示php的信息

      有帮助
      (0)
      0%
      没帮助
      (0)
      0%
      yb体育官方网站 勐海县| 新竹市| 伊金霍洛旗| 内丘县| 桑日县| 合山市| 类乌齐县| 华坪县| 衡阳市| 县级市| 若羌县| 临漳县| 西藏| 高青县| 双柏县| 额尔古纳市| 西藏| 镇原县| 高邮市| 平顶山市| 白朗县| 湖北省| 博兴县| 仙居县| 筠连县| 土默特左旗| 忻城县| 遂川县| 建宁县| 长治市| 葫芦岛市| 高唐县| 衡阳县| 苏尼特左旗| 栾川县| 蓬安县| 西青区| 财经| 彩票| 扶余县| 涿州市| http://www.hidden-trail.com http://www.matroluxe-vip.com http://www.grupofossilis.com http://www.slscu.com http://www.laprincesaiberica.com http://www.prestigecars-aubiere.com