PHP cross-compilation and porting configuration and compilation: this is the simplest version, disable all extension modules; [plain]. /configure -- prefix =/home/pub/johnny/network/install-php -- host = mips-linux-gnu -- datadir =/hom PHP cross-compiling 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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.