





<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Defy &#187; 网站框架</title>
	<atom:link href="http://www.defy.com.cn/category/zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.defy.com.cn</link>
	<description>习惯随时记录,沉淀多年知识.</description>
	<lastBuildDate>Thu, 02 Sep 2010 01:55:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>wget: command not found</title>
		<link>http://www.defy.com.cn/2010/08/25/wget-command-not-found/</link>
		<comments>http://www.defy.com.cn/2010/08/25/wget-command-not-found/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 08:06:06 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=552</guid>
		<description><![CDATA[最小化安装CentOS5.5 安装过程什么都没选。 今天使用wget命令的时候出现了一下错误：-bash: wget: command not found 很显然，这是因为最小化安装没有安装wget的缘故。 这该怎么办呢？不要着急，只需要通过rpm方式安装上即可。 具体方法为： rpm -ivh http://centos.ustc.edu.cn/centos/5.5/os/i386/CentOS/wget-1.11.4-2.el5_4.1.i386.rpm 同样，最小化安装CentOS是没有setup工具的，您也只需要rpm安装即可。]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/25/wget-command-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux CentOS 5 Server: YUM Repository to Install Zend Optimizer</title>
		<link>http://www.defy.com.cn/2010/08/23/linux-centos-5-server-yum-repository-to-install-zend-optimizer/</link>
		<comments>http://www.defy.com.cn/2010/08/23/linux-centos-5-server-yum-repository-to-install-zend-optimizer/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 07:29:58 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=526</guid>
		<description><![CDATA[I recently needed to install Zend Optimizer which was required by a ZenCart addon using Zend Guard. Zend Guard encrypts some or all of a PHP application to help protect its contents from being copied or modified. So I was typically like to install everything on CentOS using the yum package manger to make sure [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/23/linux-centos-5-server-yum-repository-to-install-zend-optimizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让MAGENTO加速一倍的办法</title>
		<link>http://www.defy.com.cn/2010/08/23/%e8%ae%a9magento%e5%8a%a0%e9%80%9f%e4%b8%80%e5%80%8d%e7%9a%84%e5%8a%9e%e6%b3%95/</link>
		<comments>http://www.defy.com.cn/2010/08/23/%e8%ae%a9magento%e5%8a%a0%e9%80%9f%e4%b8%80%e5%80%8d%e7%9a%84%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 07:27:43 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=527</guid>
		<description><![CDATA[大家可能都发现了，刚装上MAGENTO的时候，MAGENTO是比乌龟还慢的一个系统。。。 如何解决呢？其实很多的主机都已经默认安装一个组件：GZIP。 我们就是要通过修改它来提高MAGENTO的运行速度。 关于能提高多少的问题？大家可以在修改之前去mod_gzip tester 看看你MAGENTO网站的速度，然后在修改之后再去看看。。。 现在我们为MAGENTO开启GZIP。比较方便的方法是修改根目录下.htaccess 文件。我们只需要去掉一些注释就可以了。 在根目录.htaccess找到和以下代码相似的代码，并且把代码修改得和下面一模一样。(去掉前面的#符号。) ############################################ ## enable apache served files compression ## http://developer.yahoo.com/performance/rules.html#gzip # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems… BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSIE !no-gzip !gzip-only-text/html [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/23/%e8%ae%a9magento%e5%8a%a0%e9%80%9f%e4%b8%80%e5%80%8d%e7%9a%84%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yum安装eaccelerator</title>
		<link>http://www.defy.com.cn/2010/08/23/yum%e5%ae%89%e8%a3%85eaccelerator/</link>
		<comments>http://www.defy.com.cn/2010/08/23/yum%e5%ae%89%e8%a3%85eaccelerator/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 07:08:53 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=524</guid>
		<description><![CDATA[现在已经习惯yum安装软件，可以用rpm就尽量用rpm包来安装，尽量不去编译。 官方的源没有eaccelerator， rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm rpm &#8211;import /etc/pki/rpm-gpg/RPM-GPG-KEY* yum install php-eaccelerator yum eaccelerator 半天，都说没有这个包，后来 [root@srv yum.repos.d]# yum search eaccelerator Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * rpmforge: apt.sw.be * base: centos.mirrors.redwire.net * updates: mirrors.usc.edu * addons: mirror.nic.uoregon.edu * extras: centos.cogentcloud.com ============================= Matched: eaccelerator ============================== php-eaccelerator.i386 : PHP accelerator, optimizer, encoder and dynamic [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/23/yum%e5%ae%89%e8%a3%85eaccelerator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx+Apache+Mysql+Php+eaccelerator+Zend构建高性能的WEB服务器</title>
		<link>http://www.defy.com.cn/2010/08/23/nginxapachemysqlphpeacceleratorzend%e6%9e%84%e5%bb%ba%e9%ab%98%e6%80%a7%e8%83%bd%e7%9a%84web%e6%9c%8d%e5%8a%a1%e5%99%a8/</link>
		<comments>http://www.defy.com.cn/2010/08/23/nginxapachemysqlphpeacceleratorzend%e6%9e%84%e5%bb%ba%e9%ab%98%e6%80%a7%e8%83%bd%e7%9a%84web%e6%9c%8d%e5%8a%a1%e5%99%a8/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 07:06:12 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=522</guid>
		<description><![CDATA[Nginx (&#8220;engine x&#8221;) 是一个高性能的 HTTP 和反向代理服务器，也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的，它已经在该站点运行超过两年半了。Igor 将源代码以类BSD许可证的形式发布。 Nginx 超越 Apache 的高性能和稳定性，使得国内使用 Nginx 作为 Web 服务器的网站也越来越多，但是网上吹嘘胜于apche10倍实在比较夸张，apache经过优化之后处理PHP页面速度还是不错的，比fastcgi方式要稳定的多。 本文就是整合了nginx和apache，由nginx处理静态页，apache处理php页面 安装步骤 系统要求：Linux 2.6+ 内核，本文中的Linux操作系统为CentOS 4.8，另在RedHat AS4上也安装成功 一、获取相关开源程序： 所需软件： eaccelerator-0.9.5.3.tar.bz2 gd-2.0.35.tar.gz httpd-2.2.14.tar.bz2 mysql-5.1.42.tar.gz php-5.2.12.tar.bz2 ZendOptimizer-3.3.9-linux-glibc21-i386.tar.gz nginx-0.7.64.tar.gz pcre-8.0.tar.gz &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 安装之前要确保系统中安装了以下这些包。 我们可以用rpm -qa &#124;grep 来查看系统是否装 bzip2-devel zlib-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel openssl-devel libxml2-devel [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/23/nginxapachemysqlphpeacceleratorzend%e6%9e%84%e5%bb%ba%e9%ab%98%e6%80%a7%e8%83%bd%e7%9a%84web%e6%9c%8d%e5%8a%a1%e5%99%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento性能优化策略汇总</title>
		<link>http://www.defy.com.cn/2010/08/23/magento%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%e7%ad%96%e7%95%a5%e6%b1%87%e6%80%bb/</link>
		<comments>http://www.defy.com.cn/2010/08/23/magento%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%e7%ad%96%e7%95%a5%e6%b1%87%e6%80%bb/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 07:03:11 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=520</guid>
		<description><![CDATA[magento的网站实在是太慢了，想了好多办法，参考了好多资料，做了很多测试，总结一下大概的步骤如下 １、压缩js,css代码，如果有必要把所有的css,js分别综合到一个文件中，并压缩，缓存 ２、清除magento模板中不必要的注释，为所使用到的图片瘦身 ３、优化magento代码，这个步骤工作量大，但可能是效果显著的步骤，不过前提是你非常熟悉magento，彻底删除不用的模块，关闭没用的block，清除无效，无用的xml（解析xml非常昂贵的），在一个页面中尽量不要大量调用magento的image resize功能，非常消耗内存，除非你自己优化代码。 ４、mysql配置优化，充分发挥你的硬件资源，下面的数值要根据你的配置调整 key_buffer_size = 512M max_allowed_packet = 64M table_cache = 512 sort_buffer_size = 4M net_buffer_length = 8K read_buffer_size = 4M read_rnd_buffer_size = 2M myisam_sort_buffer_size = 64M tmp_table_size = 128M query_cache_size = 96M query_cache_type = 1 thread_cache_size = 8 max_connections = 400 wait_timeout = 300 ５、将magento的var目录挂载到内存中，加快读取速度，如 mount -t tmpfs -o size=100M,mode=0777 tmpfs [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/23/magento%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%e7%ad%96%e7%95%a5%e6%b1%87%e6%80%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让Zend Optimizer和eAccelerator完美并存为magento再加速</title>
		<link>http://www.defy.com.cn/2010/08/23/%e8%ae%a9zend-optimizer%e5%92%8ceaccelerator%e5%ae%8c%e7%be%8e%e5%b9%b6%e5%ad%98%e4%b8%bamagento%e5%86%8d%e5%8a%a0%e9%80%9f/</link>
		<comments>http://www.defy.com.cn/2010/08/23/%e8%ae%a9zend-optimizer%e5%92%8ceaccelerator%e5%ae%8c%e7%be%8e%e5%b9%b6%e5%ad%98%e4%b8%bamagento%e5%86%8d%e5%8a%a0%e9%80%9f/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 06:59:26 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=518</guid>
		<description><![CDATA[安装过eAccelerator再安装Zend，会造成启动Apache失败。 用php -v查看得到以下错误信息： PHP Fatal error: [Zend Optimizer] Zend Optimizer 3.3.0 is incompatible with eAccelerator 0.9.5.2 in Unknown on line 0 在CentOS5.2下的解决方法 （继续） 为： mv /etc/php.d/eaccelerator.ini /etc/php.d/eaccelerator.ini.save 然后，再把以下内容添加到/etc/php.ini中的[Zend]上方： [eAccelerator] ; Enable eAccelerator extension module zend_extension = /usr/lib/php/modules/eaccelerator.so ; Options for the eAccelerator module eaccelerator.cache_dir = /var/cache/php-eaccelerator eaccelerator.shm_size = 0 eaccelerator.enable = 1 eaccelerator.optimizer = 1 [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/23/%e8%ae%a9zend-optimizer%e5%92%8ceaccelerator%e5%ae%8c%e7%be%8e%e5%b9%b6%e5%ad%98%e4%b8%bamagento%e5%86%8d%e5%8a%a0%e9%80%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.5安装Magento</title>
		<link>http://www.defy.com.cn/2010/08/22/magento%e7%a0%94%e7%a9%b6%e5%9f%ba%e7%a1%80/</link>
		<comments>http://www.defy.com.cn/2010/08/22/magento%e7%a0%94%e7%a9%b6%e5%9f%ba%e7%a1%80/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 15:58:35 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=515</guid>
		<description><![CDATA[最小化安装CentOS5.5 换源 更新 停用不必要的服务 关防火墙 关Selinux,上架服务器强烈推荐开启Selinux 安装Apache及SVN 安装PHP (magento不支持PHP5.3)默认yum安装的话php版本是5.1的。参考yum安装升级php5.2 安装Mysql 安装vsftpd并且设置相关参数 一定要在CentOS 5.5中安装Zend Optimizer 再安装Aaccelerator Magento官方有测试代码，安装Magento之前可以测试环境是否满足需求 设定/etc/hosts给予假定的域名指向本机IP 设定Apache虚拟目录位置/mnt/hgfs/www &#60;VirtualHost *:80&#62; ServerName www.test.com DocumentRoot /mnt/hgfs/Zend/test/public SetEnv APPLICATION_ENV &#34;development&#34; &#60;Directory /mnt/hgfs/Zend/test/public&#62; DirectoryIndex index.php Options FollowSymLinks AllowOverride All order allow,deny Allow from all &#60;/Directory&#62; &#60;/VirtualHost&#62; 打开rewrite写操作,把none改成ALL 默认yum安装是none，导致magento 无法找到产品详细页而报404错误 Magento开发环境开启配置/etc/httpd/conf/httpd.conf添加 SetEnv MAGE_IS_DEVELOPER_MODE 安装好之后进Magento后台开户错误报告并且建立相关log文件夹,程序不会自动建立的 安装VMware Tools 并且开启与物理机可写共享文件位置/mnt/hgfs/www 物理机中Zend Studio 8的workspace设定在虚拟机的共享文件夹中 [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/22/magento%e7%a0%94%e7%a9%b6%e5%9f%ba%e7%a1%80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos配置 svn(apache+mysql)</title>
		<link>http://www.defy.com.cn/2010/08/21/centos%e9%85%8d%e7%bd%ae-svnapachemysql/</link>
		<comments>http://www.defy.com.cn/2010/08/21/centos%e9%85%8d%e7%bd%ae-svnapachemysql/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 14:07:10 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=513</guid>
		<description><![CDATA[1,环境及相关服务检查 确认是否安装了apache,mysql，没有请yum 安装apache mysql 一般情况下，centos自带了svnserver,如果没有运行 yum install subversion 2: 相关软件包检查 请确认下面软件包有没有安装，如果没有安装，请yum 安装 openssl-0.9.8b-8.3.el5 openssl-devel-0.9.8b-8.3.el5 mod_ssl-2.2.3-6.el5 mod_auth_mysql-3.0.0-3.1 mysql-server-5.0.22-2.1 mysql-5.0.22-2.1 mysql-devel-5.0.22-2.1 subversion-1.4.2-2.el5 mod_dav_svn-1.4.2-2.el5 如果安装正常的话，应该在/etc/httpd/modules目录下能找到这些模块 mod_authz_svn.so mod_dav_svn.so mod_auth_mysql.so 3: 初始化repository 创建svn的项目库父路径，我把/svn/repos做为svn的项目库父路径。这个目录是任意的，如果是多个项目库则必须在同一个父路径下 #mkdir /svn/repos 我们通过如下命令初始化一个svn项目库TelecomRepositorys #svnadmin create /svn/repos/TelecomRepositorys 重复上面的命令创建多个项目库，如 #svnadmin create /svn/repos/OtherRepositorys 或者你指定SVN库的存储方式 #svnadmin create –fs-type fsfs /svn/repos/TelecomRepositorys 或者 #svnadmin create –fs-type bdb /svn/repos/TelecomRepositorys 默认是bdb(Berkeley DB)的存储方式，不过一般人更喜欢fsfs的存储库方式 步骤4：创建认证数据库[如果用登陆用户文件认证的话，此步可忽略] 登陆mysql #mysql [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/21/centos%e9%85%8d%e7%bd%ae-svnapachemysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS5.5速建SVN自用</title>
		<link>http://www.defy.com.cn/2010/08/21/centos5-5%e9%80%9f%e5%bb%basvn%e8%87%aa%e7%94%a8/</link>
		<comments>http://www.defy.com.cn/2010/08/21/centos5-5%e9%80%9f%e5%bb%basvn%e8%87%aa%e7%94%a8/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 13:59:57 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=511</guid>
		<description><![CDATA[yum install subversion sudo useradd svn sudo passwd svn # 设置密码 # 切换至home cd ~ mkdir repositories # 切换至代码仓库 cd repositories # 创建一个工程,名为 myproject svnadmin create myproject # 配置工程 vim myproject/conf/svnserve.conf # 取消掉如下两行的注释 # auth-access = write # password-db = passwd # 配置该工作的用户与密码 vim myproject/conf/passwd [users] username = password # 切换至home svnserve -d -r /home/svn/repositories]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/08/21/centos5-5%e9%80%9f%e5%bb%basvn%e8%87%aa%e7%94%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
