PHP のクロスコンパイルと移植
設定とコンパイル: これは最も単純なバージョンで、すべての拡張モジュールを無効にします。 [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" =>) ;
((
"ソケット" => "/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" => "無効",
))
)
fastcgi.server = (
"/test.php" => ;
((
"ソケット" => "/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 のコピーを開発ボード/tmp に置きます。 /network/sbin/php-cgi
3)、test.php
[php]
phpinfo();
>
phpinfo();
を作成します。次にブラウザ上でphp情報を表示します