<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[嵌入式PHP]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 21 May 2010 16:59:22 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	有人在 Zaurus 上编译了 apache 和 php ，mysql 应该也不成问题。<br/>把apache2.0+php5.2精简成了一个10M的目录。运行正常。包含PDO，sqlite,mb_string,gd2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这大概是极限了，当然去掉这些扩展后还能再小一些，然而，一个&nbsp;&nbsp; php5ts.dll&nbsp;&nbsp;&nbsp;&nbsp;已经是4.5M了，没法再减了。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10M的东西可以做嵌入？<br/>就是在arm平台上，用apache和php5的。apache1.3+php4的包要小的多。求移植apache+php+mysql到arm外挂硬盘的方法!apache、mysql已经单独交叉编译成功了。因为apache 需要支持php 和mysql ,需要有相应的支持模块<br/>请问怎样交叉编译这些模块？移植apache1.3.34+php4.4.1到arm9+armlinux2.4.18:<br/>本人的移植经验与大家分享,希望对大家有帮助~<br/>编译环境：<br/>native: redhat9<br/>target: armlinux2.4.18<br/>arm: arm9-s3c2410<br/>tool:<br/>arm-linux-gcc (verison 2.95)<br/>apache1.3.34<br/>cp两个apache1.3.34<br/>一:apache1.3.34_redhat的配置<br/>#redhat for apache1.3.34<br/>export LD=ld<br/>export CC=gcc<br/>export RANLIB=ranlib<br/>./configure<br/>--prefix=/usr/local/apache1.3.34 --exec-prefix=/usr/local/apache1.3.34<br/>--libexecdir=/usr/local/apache1.3.34/libexec --enable-module=so<br/>二:apache1.3.34_arm的配置<br/>#armv4l-unknown-linux for apache1.3.34<br/>1.configure cross-compiling<br/>export LD=/usr/arm-linux/bin/armv4l-unknown-linux-ld<br/>export CC=/usr/arm-linux/bin/armv4l-unknown-linux-gcc<br/>export RANLIB=/usr/arm-linux/bin/armv4l-unknown-linux-ranlib<br/>./configure<br/>--prefix=/usr/local/apache1.3.34-arm<br/>--exec-prefix=/usr/local/apache1.3.34-arm<br/>--libexecdir=/usr/local/apache1.3.34-arm/libexec --enable-module=so<br/>--target=armv4l-unknown-linux<br/>make<br/>make (error1: generate test_char.h)<br/>make (error2: generate uri_delims.h)<br/>2.configure native-compiling in another dir apache1.3.34_redhat<br/>copy apache1.3.34_redhat/src/main/test_char.h&amp;uri_delims.h to apache1.3.34_arm/src/main/<br/>(make sure the fileactime if newer , so to void make again)<br/>3.make (in apache1.3.34_arm again, and success)<br/>4.make install<br/>5. edit http.conf<br/>user nobody<br/>group nobody<br/>6.add nobody::100: in the /etc/group<br/>7.type &quot;hostname localhost&quot; in arm shell@<br/>8.run apache int your arm! (make sure the path is same with your install dir)<br/>个人感觉其实移植的过程就是排错的过程, 而出错提示在论坛或google搜都有,很多前辈都有说明了<br/><br/><br/>php4.4.1的移植还在摸索中,编译是成功了,但发现我现在用的2.4.18的核不支持loadmodule<br/>libphp4.so(因为php要用libc-2.3的GLIBC库),这些天都在忙着弄2.6.15的核,总算是能跑起来了,还有ramdisk没解<br/>决~~~ 
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 嵌入式PHP]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>