PHP cross-compilation and porting configuration and compilation: this is the simplest version, disable all extension modules; [plain]. configure -- prefixhomepubjohnnynetworkinstall-php -- hostmips-linux-gnu -- datadirhomepubjohnnynetworkinst PHP cross-compilation and porting
Configuration and compilation: this is the simplest version, and disable all extension modules; [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. test:
1) modify fastcgi. conf
Add:
[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) copy/home/pub/johnny/network/install-php/bin/php-cgi to the development board/tmp/network/sbin/php-cgi
3) Create test. php under/tmp/network/webpages /.
[Php]
Phpinfo ();
>
Phpinfo ();
>
4) Start lighttpd on the Development Board
5) enter http: // 192. 168. *. */test. php on the PC to display the php information on the browser.