<?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安装zip扩展]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Sun, 23 Dec 2012 08:40:39 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	VPS上很多应用，是需要zip扩展的。而我帮朋友配置的一台VPS，是Redhat的系统，并且是64bit的，但是貌似网上的LNAMP一键安装包恰好还不支持64位，所以我的LNAMP环境是全手动搭建的。由于手动搭建，为了简单，一些扩展默认我就没编译到php里面去，因此这次的这个zip扩展，需要手动配置进去。其实PHP的很多扩展，能在编译的时候，通过开关开启。如果编译的时候，没有开启，也没关系，可以通过php.ini中加入extension的方式开启。比如这次的zip扩展，就可以用此方法实现。此文为记录一下zip扩展手动安装的过程，备忘。<br/>第一步，下载源代码并解压缩<br/>http://pecl.php.net/package/zip<br/>wget http://pecl.php.net/get/zip-1.10.2.tgz<br/>tar zxvf zip-1.10.2.tgz<br/>cd zip-1.10.2<br/>第二步，编译并安装<br/>/usr/local/php/bin/phpize<br/>#运行此命令后，会自动生成几个文件，包括configure文件<br/>./configure --with-php-config=/usr/local/php/bin/php-config<br/>make &amp; make install<br/>第三步，配置php.ini，并开启zip扩展<br/>zip安装后，会显示安装的路径，比如：/usr/local/php/lib/php/extensions/zip.so<br/>在php.ini中加入： extension=/usr/local/php5/lib/php/extensions/zip.so<br/>如果是LNMP安装包，需要重新启动php-fpm，如果是LNAMP结构，需要重启apache即可。<br/>至此，安装zip扩展完毕，可以在phpinfo()中检查zip扩展是否已经正确启用。
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 为PHP安装zip扩展]]></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>