PHP cross-compiling and porting
Configuration and Compilation: Here is the simplest version, disable off all the expansion 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 to:
[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), the/home/pub/johnny/network/install-php/bin/php-cgi copy to the Development Board/TMP/NETWORK/SBIN/PHP-CGI
3), create test.php under/tmp/network/webpages/
[PHP]
Phpinfo ();
>
Phpinfo ();
>
4), launch LIGHTTPD on the Development Board
5), enter http://192.168.*.*/test.php on the PC, then display 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service