1. 主頁 > 知識庫 > 網絡編程 > 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%
          2018宝宝说数特来算 北票市| 尚志市| 保定市| 浦江县| 丹阳市| 武宣县| 东兴市| 湖南省| 海城市| 如皋市| 竹溪县| 开远市| 阿克陶县| 潼南县| 普兰县| 泸定县| 阿拉善右旗| 青铜峡市| 惠水县| 邵东县| 沛县| 芮城县| 宝兴县| 塔城市| 苏尼特左旗| 长顺县| 汶川县| 桐柏县| 尚义县| 竹北市| 贵州省| 全州县| 扶风县| 邯郸市| 长宁区| 临洮县| 宝应县| 连云港市| 易门县| 山阳县| 上思县| http://www.sinarnt4.pw http://china.lsj35k.pw http://www.k30457.cn http://www.theatero9.top http://m.sinas6u.pw http://so.s3g4ok.top