The nolocal theming and packaging methodology
So this will cause ultimate uproar and go against the grain of every Magento developer - but we've got a solid process for theming - that does not use local.xml (more on that later). We always work off the base/default template - but zero out the CSS. Even though all designs don't particularly lend themselves … Continue reading
Running Magento in PHP 5.4's built-in web server
Whilst this isn't a good idea for a production store, if you want to just experiment or develop locally, this works just fine. Instructions for Debian cat >> /etc/apt/sources.lst <<EOF deb https://packages.dotdeb.org squeeze-php54 all deb-src https://packages.dotdeb.org squeeze-php54 all EOF wget -qO - https://www.dotdeb.org/dotdeb.gpg | apt-key add - apt-get update apt-get install php5-cli php5-mysqlnd php5-mcrypt php5-common … Continue reading
Varnish cache
Varnish cache is disabled by default for all content. You can enable Varnish on your domain by adding the following parameter to the top of your ___general/example.com.conf (or example.com.location.semi-static.conf, example.com.location.static.conf as applicable). Caching works on the premise of cache everything until told otherwise, you can fully control Varnish using configuration directives. Eg. set $magestack_cacheable true; … Continue reading
Deconstructing the cache image path on Magento
Deconstructing the cache image path /media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/m/e/me-d1_2.jpg |___________________________|_|_____|________________________________|_|_|__________| | | | | | | | Cache Directory | | | | | | Mage/Catalog/Model/Product/Media/Config.php | | | | getBaseMediaPath() | | | | | | | | | | | | | | | | | | Store ID | | | | Mage::app()->getStore()->getId() | | … Continue reading
APC and Memcache with Magento
You need to understand the clear distinction between these two products to understand how to use them. APC is both an OPCode Cache and Fast Backend Memcache is just a Fast Backend Using APC as an OPCode Cache Simply install the module on your server pecl install apc And enable it in your php.ini echo … Continue reading
MySQL and Magento Peformance Tuning
Define performance Do you mean the page load time for a single user, or the overall capacity/total concurrency? The two are very distinctly different - and not strictly related. It is entirely possible to have a fast store with limited capacity; or a slow store with lots of capacity. So when addressing either type of … Continue reading
Multiple SOLR Cores for Magento on Debian/Ubuntu/CentOS/RedHat
On Debian/Ubuntu The most straightforward installation is pretty easy using tomcat and your package manager. The dependencies will be met automatically. apt-get install tomcat6 On CentOS/RedHat You need to grab some alternative repo's to make this possible Eg. rpm -Uvh https://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm rpm -Uhv https://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm rpm -Uvh https://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm Then you can install the package from yum … Continue reading
Magento with Varnish
Is Varnish right for you? Varnish isn't the be-all and end-all of Magento performance. Its great to offset load from bots & window-shoppers - but it shouldn't be your first port of call to actually making your store faster. In fact, implementing Varnish should be the last performance modification to your store. Only drop it … Continue reading
The Best Magento Server Set Up
We recently came across an all-too-commonly asked question over at Stack Exchange - that was worthy of a lengthy answer on our blog. Our client we are currently working with has a requirement that first response from the web server must come in under 200ms in the UK. Currently under 2 dedicated web servers under … Continue reading
Magento Debug Process
Debugging is a bit of an art, but something that can easily be mastered by following a simple regimen. Follow each point until you finally reach a solution. Enable PHP Errors This is key to most issues. For security or other reasons, PHP error display could likely be disabled by default by your PHP configuration. … Continue reading