<?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>Anthony Taliercio - Managed Hosting Atlanta &#187; E-Commerce</title> <atom:link href="http://www.anthonyt.com/tag/e-commerce/feed/" rel="self" type="application/rss+xml" /><link>http://www.anthonyt.com</link> <description>Call me at 678-365-2828</description> <lastBuildDate>Tue, 07 Jun 2011 00:39:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Install and configure memcached for Magento 1.5.0.1 on RedHat 5.5</title><link>http://www.anthonyt.com/2011/install-and-configure-memcached-for-magento-on-redhat-5/</link> <comments>http://www.anthonyt.com/2011/install-and-configure-memcached-for-magento-on-redhat-5/#comments</comments> <pubDate>Sun, 15 May 2011 16:44:40 +0000</pubDate> <dc:creator>Anthony Taliercio</dc:creator> <category><![CDATA[Magento]]></category> <category><![CDATA[E-Commerce]]></category> <category><![CDATA[Managed Hosting]]></category> <category><![CDATA[memcached]]></category> <category><![CDATA[redhat 5]]></category><guid
isPermaLink="false">http://www.anthonyt.com/?p=588</guid> <description><![CDATA[Magento is a very powerful shopping cart.  Because there are so many requests to the database during each load it&#8217;s speed is depentant upon MySQL. Memcached is a memory caching system used to speed up dynamic database driven websites by caching MySQL in RAM. The service allows MySQL database tables to be stored in memory, [...]]]></description> <content:encoded><![CDATA[<div
id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Magento is a very powerful shopping cart.  Because there are so many requests to the database during each load it&#8217;s speed is depentant upon MySQL.</div><div
id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Memcached is a memory caching system used to speed up dynamic database driven websites by caching MySQL in RAM.</div><div
id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The service allows MySQL database tables to be stored in memory, thus increasing the speed of Magento.</div><p><a
href="http://cdn.anthonyt.com/wp-content/magento.jpg"><img
class="alignnone size-medium wp-image-590" title="magento" src="http://cdn.anthonyt.com/wp-content/magento-300x84.jpg" alt="magento" width="300" height="84" /></a></p><p><a
href="http://cdn.anthonyt.com/wp-content/memcached_banner75.jpg"><img
class="alignnone size-medium wp-image-589" style="border: 0px initial initial;" title="memcached" src="http://cdn.anthonyt.com/wp-content/memcached_banner75-300x55.jpg" alt="memcached" width="300" height="55" /></a></p><h1>Installing memcached on RedHat 5.5 to speed up Magento 1.5.0.1</h1><p><a
href="http://www.magentocommerce.com/" target="_blank">Magento</a> is a very powerful shopping cart.  Because there are so many requests to the database during each page load it&#8217;s speed is bottlenecked by MySQL.</p><p>The Magento team built in the option to use a few caching systems to help with speed.  Memcached, APC, &amp; xcache are some available options.</p><p>Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of Magento database calls.</p><h2>Install Memcached using an RPM</h2><p>Memcached is not built into RedHat Enterprise Linux 5 by default.  So I&#8217;m going to install an RPM that has the software (<a
href="http://www.lullabot.com/articles/installing-memcached-redhat-or-centos" target="_blank">credit</a>):</p><blockquote><p>rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm</p></blockquote><p>RedHat 5.5 has some dependency issues (<a
href="http://stackoverflow.com/questions/4420066/memcached-installing-issues" target="_blank">credit</a>) so we&#8217;ll need to tell Yum how to correct them:</p><blockquote><p>yum &#8211;enablerepo=rpmforge,rpmforge-extras install memcached</p></blockquote><p>Confirm memcached is running:</p><blockquote><p>memcached -h</p></blockquote><h2>Install the PECL extension</h2><p>Now we have to allow PHP to access memcached with the PECL extension:</p><blockquote><p>pecl install memcache</p></blockquote><p>Add the memcache extension to the php.ini file (usually at /etc/php.ini)</p><blockquote><p>extension=memcache.so</p></blockquote><p>Configure memcache</p><blockquote><p>vi /etc/sysconfig/memcached</p></blockquote><p>Depending upon how much RAM you have to play with adjust these settings.  For my install I want to give memcache 2 GB of RAM and listen on localhost:</p><blockquote><p>PORT=&#8221;11211&#8243;</p><p>USER=&#8221;memcached&#8221;</p><p># max connection 2048</p><p>MAXCONN=&#8221;2048&#8243;</p><p># set ram size to 2048 &#8211; 2GB</p><p>CACHESIZE=&#8221;2048&#8243;</p><p># listen to loopback ip 127.0.0.1, for network connection use real ip e.g., 10.0.0.4</p><p>OPTIONS=&#8221;-l 127.0.0.1&#8243;</p></blockquote><p>Verify the the install in PHP info:</p><table
style="border-collapse: collapse; margin-left: auto; margin-right: auto; text-align: left;" border="0" cellpadding="3" width="600"><tbody><tr
class="h" style="background-color: #9999cc; font-weight: bold; color: #000000;"><th
style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; text-align: center !important; border: 1px solid #000000;">memcache support</th><th
style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; text-align: center !important; border: 1px solid #000000;">enabled</th></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">Active persistent connections</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">0</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">Version</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">2.2.6</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">Revision</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">$Revision: 303962 $</td></tr></tbody></table><table
style="border-collapse: collapse; margin-left: auto; margin-right: auto; text-align: left;" border="0" cellpadding="3" width="600"><tbody><tr
class="h" style="background-color: #9999cc; font-weight: bold; color: #000000;"><th
style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; text-align: center !important; border: 1px solid #000000;">Directive</th><th
style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; text-align: center !important; border: 1px solid #000000;">Local Value</th><th
style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; text-align: center !important; border: 1px solid #000000;">Master Value</th></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">memcache.allow_failover</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">1</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">1</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">memcache.chunk_size</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">8192</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">8192</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">memcache.default_port</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">11211</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">11211</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">memcache.default_timeout_ms</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">1000</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">1000</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">memcache.hash_function</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">crc32</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">crc32</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">memcache.hash_strategy</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">standard</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">standard</td></tr><tr><td
class="e" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #ccccff; font-weight: bold; color: #000000; border: 1px solid #000000;">memcache.max_failover_attempts</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">20</td><td
class="v" style="font-family: sans-serif; font-size: 12px; vertical-align: baseline; background-color: #cccccc; color: #000000; border: 1px solid #000000;">20</td></tr></tbody></table><h2>Set up Memcached as a service</h2><p>Just installing memcached by itself wont don anything.  Now we have to set it up as a service.  Register the script to start with the server:</p><blockquote><p>/sbin/chkconfig &#8211;add memcached</p></blockquote><div>And finally start memcached as a service:</div><blockquote><div>/etc/init.d/memcached start</div></blockquote><h2>Intergrate memcached with Magento</h2><div>To enable Memcached within Magento, you will need to add the following block of code to your app/etc/local.xml file (<a
href="http://blog.nexcess.net/2010/03/22/enabling-memcached-in-magento/" target="_blank">credit</a>)</div><div><blockquote><div><div>&lt;session_save&gt;&lt;![CDATA[memcached]]&gt;&lt;/session_save&gt; &lt;!&#8211; db / memcache / empty=files &#8211;&gt;</div><div>&lt;session_save_path&gt;&lt;![CDATA[tcp://127.0.0.1:11211?persistent=1&amp;weight=2&amp;timeout=10&amp;retry_interval=10]]&gt;&lt;/session_save_path&gt;</div><div>&lt;cache&gt;</div><div>&lt;backend&gt;&lt;![CDATA[memcached]]&gt;&lt;/backend&gt;</div><div>&lt;slow_backend&gt;&lt;![CDATA[database]]&gt;&lt;/slow_backend&gt;</div><div>&lt;memcached&gt;&lt;!&#8211; memcached cache backend related config &#8211;&gt;</div><div>&lt;servers&gt;&lt;!&#8211; any number of server nodes can be included &#8211;&gt;</div><div>&lt;server&gt;</div><div>&lt;host&gt;&lt;![CDATA[127.0.0.1]]&gt;&lt;/host&gt;</div><div>&lt;port&gt;&lt;![CDATA[11211]]&gt;&lt;/port&gt;</div><div>&lt;persistent&gt;&lt;![CDATA[1]]&gt;&lt;/persistent&gt;</div><div>&lt;weight&gt;&lt;![CDATA[1]]&gt;&lt;/weight&gt;</div><div>&lt;timeout&gt;&lt;![CDATA[10]]&gt;&lt;/timeout&gt;</div><div>&lt;retry_interval&gt;&lt;![CDATA[10]]&gt;&lt;/retry_interval&gt;</div><div>&lt;status&gt;&lt;![CDATA[1]]&gt;&lt;/status&gt;</div><div>&lt;/server&gt;</div><div>&lt;/servers&gt;</div><div>&lt;compression&gt;&lt;![CDATA[0]]&gt;&lt;/compression&gt;</div><div>&lt;cache_dir&gt;&lt;![CDATA[]]&gt;&lt;/cache_dir&gt;</div><div>&lt;hashed_directory_level&gt;&lt;![CDATA[]]&gt;&lt;/hashed_directory_level&gt;</div><div>&lt;hashed_directory_umask&gt;&lt;![CDATA[]]&gt;&lt;/hashed_directory_umask&gt;</div><div>&lt;file_name_prefix&gt;&lt;![CDATA[]]&gt;&lt;/file_name_prefix&gt;</div><div>&lt;/memcached&gt;</div><div>&lt;/cache&gt;</div></div></blockquote></div><h2>Flushing Cache</h2><p>Magento is now using Memcached so you wont use the native cache found in  /var/cache.  Anytime you make changes to Magento you&#8217;ll have to flush the memcached cache to see changes.  To flush the cache you&#8217;ll have to Telnet to the memcached service:</p><blockquote><p>telnet localhost 11211</p></blockquote><p>You&#8217;ll see an output:</p><blockquote><p>Trying 127.0.0.1&#8230;</p><p>Connected to localhost.</p><p>Escape character is &#8216;^]&#8217;.</p></blockquote><p>The just give the following command:</p><blockquote><p>flush_all</p></blockquote><p>That&#8217;s all you need to do.. the cache is now flushed.  You can quit the Telnet session and you&#8217;re done.</p><blockquote><p>quit</p><p>Connection to localhost closed by foreign host.</p><p>$</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://www.anthonyt.com/2011/install-and-configure-memcached-for-magento-on-redhat-5/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Internet Retailer Magazine</title><link>http://www.anthonyt.com/2007/internet-retailer-magazine/</link> <comments>http://www.anthonyt.com/2007/internet-retailer-magazine/#comments</comments> <pubDate>Tue, 30 Oct 2007 20:55:54 +0000</pubDate> <dc:creator>Anthony Taliercio</dc:creator> <category><![CDATA[Marketing]]></category> <category><![CDATA[E-Commerce]]></category> <category><![CDATA[Sales]]></category> <category><![CDATA[Web Design]]></category><guid
isPermaLink="false">http://www.anthonyt.com/wordpress/?p=5</guid> <description><![CDATA[Doesn’t it seem that most Internet business magazines publish the same worthless info each month? You never really learn much from reading them. It seems to me like they’re afraid to get too detailed. I finally found a magazine worth reading! Internet Retailer keeps tabs on the top e-commerce websites. These are the retail companies [...]]]></description> <content:encoded><![CDATA[<p>Doesn’t it seem that most Internet business magazines publish the same worthless info each month? You never really learn much from reading them.  It seems to me like they’re afraid to get too detailed.</p><p>I finally found a magazine worth reading!</p><p>Internet Retailer keeps tabs on the top e-commerce websites.</p><p>These are the retail companies MAKING MONEY on the Internet.</p><p>Who should read Internet Retailer ?<br
/> - Anyone who sells on the Internet<br
/> - Anyone who designs websites that sell on the Internet</p><p>This magazine will help you make educated business decisions.</p><p>You can subscribe to the print version of Internet Retailer Magazine free of charge:</p><p><a
href="http://www.internetretailer.com/IR/USA/" target="_blank">http://www.internetretailer.com/IR/USA/</a></p> ]]></content:encoded> <wfw:commentRss>http://www.anthonyt.com/2007/internet-retailer-magazine/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/14 queries in 0.006 seconds using disk: basic
Object Caching 697/719 objects using disk: basic
Content Delivery Network via cdn.anthonyt.com

Served from: www.anthonyt.com @ 2012-02-08 06:12:06 -->
