pc做网站服务器,网站开发语言排名,北京seo网站诊断,wordpress采集长腿蜘蛛php5.4.5移植到arm-linux摘要.因为有嵌入WEB服务的需求#xff0c;再常识了N多的开源的嵌入服务后最终选择了lighttpd.Apache太大支了#xff0c;而且在arm上对swf的支持不好.其他的都不怎么理想.lighttpd的移植过程就省略了。这里只摘要了PHP移植,采用fastcgi与lighttpd 协作…php5.4.5移植到arm-linux摘要.因为有嵌入WEB服务的需求再常识了N多的开源的嵌入服务后最终选择了lighttpd.Apache太大支了而且在arm上对swf的支持不好.其他的都不怎么理想.lighttpd的移植过程就省略了。这里只摘要了PHP移植,采用fastcgi与lighttpd 协作.php版本:php5.4.5交叉编译设置参数:./configure --enable-fastcgi --enable-force-cgi-redirect --enable-discard-path --disable-cli --without-iconv --enable-mbstring --enable-pdoshared --with-sqliteshared --with-pdo-sqliteshared --hostarm-linux*5.3以后的版本默认就支持fastcgi,所以上面的fastcgi的配置会提示不存在,不用理会.//arm方案export CCarm-hisiv200-linux-gcc//编译make*make中会有各种库或头文件的引用另行安装编译然后修改MakeFile即可;//编译后1、在sapi/cgi/下即是得到的可执行文件php-cgi;2、在板子上任意目录建1个文件夹 php将php-cgi复制到该目录中;3、编辑lighttpd.conf基本配置信息注意其内嵌配置文件 modules.conf;4、编辑modules.conf//server.module修改,注意其关联的fastcgi.confserver.modules (mod_access,# mod_alias,# mod_auth,mod_evasive,mod_redirect,mod_rewrite,# mod_setenv,# mod_usertrack,)5、编辑fastcgi.conf确保包含server.modules(mod_fastcgi)fastcgi.server ( .php ( php-local (socket /tmp/php-fastcgi.socket-0,bin-path /home/yjm/php/php-cgi,max-procs 1,broken-scriptfilename enable,)),( php-tcp (host 127.0.0.1,port 9999,check-local disable,broken-scriptfilename enable,)),( php-num-procs (socket /tmp/php-fastcgi.socket-1,bin-path /home/yjm/php/php-cgi,bin-environment (PHP_FCGI_CHILDREN 16,PHP_FCGI_MAX_REQUESTS 10000,),max-procs 5,broken-scriptfilename enable,)),)6、可建立一个php页面index.php:运行页面后注意Configuration File (php.ini) Path 如果没有可参照[7]7、可将php源码中的php.ini-recommended改名为php.ini,复制到板子的目录/usr/lib中* 之所以要写这个笔记,是因为这个移植完全是手工的没有任何安装过程,现在配置完成后终于有点理解了。