PHP cross-compilation and transplantation-php Tutorial

Source: Internet
Author: User
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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.