香港云服务器PHP交叉编译和移植
配置和编译:此处为最简易的版本,disable掉了所有的扩展模块; [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" => (( "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)、把/home/pub/johnny/network/install-php/bin/php-cgi copy 到开发板/tmp/network/sbin/php-cgi 3)、在/tmp/network/webpages/下创建test.php [php] phpinfo(); > phpinfo(); > 4)、开发板上启动lighttpd 5)
购买使用一诺网络香港服务器,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。香港服务器低至29元/月,购买链接:https://www.enuoidc.com/vps.html?typeid=2