We learned from a lot of magento project for years, the magento speed is the key to make customers/users happy but it take us a lot of time to optimize too. So let ‘s take it easy by following these steps to Speed up Magento. We are pretty sure you will be happy with the result.
Magento is feature-rich, professional open-source ecommerce solution that offers merchants complete flexibility and control but it require a good platform what is configured right for it to run it fast. Almost people will think Magento is too slow but they will never know that Magento can run very fast if you make the right choice and do the right way base on their platform feature requirements. Just need to solve the magento speed problem then it ‘s really a perfect ecommerce solution. Ok, I know we are still in a big question: How to Speed up Magento?
Let ‘s go through 5 ways to speed up magento base on our development from 2008, we are sure it will help you have a good speed for your magento site.
1. Speed up Magento by Clean database log
It ‘s easy to understand that your magento can’t work well with a huge database. Many store keep too much the data they ‘ve never used. So let ‘s clean it in easy way by Optimize magento database by Cleaning log . It shouldn’t take you more 30 minutes to do but get a very good effect.
2. Caching configuration for Magento
Magento is designed so it focus to caching very much to have the best performance, but the default caching engine of magento is File System. They use it just because all of servers support it. But File System cache is the slowest caching engine. We need to configure magento to get it faster by other caching engine. My experience about speed up magento by caching engine is this flow from slow to fast.
File System => APC => Memcached => Redis cache => Varnish cache
The question is: why we don’t use Varnish cache in the most performance speed for all of magento sites? Because it take an advantage development and maintain so that only use it in the case you really need a very high speed. Maybe you don’t know that you can speed up magento roughly 200 times in practice with Varnish.
3. Magento server configuration optimization
This is a long instructions to speed up magento by server optimization. Basically, you need a very good magento hosting to get it make sense to do all of configuration or it just make your magento site crash and doesn’t work. Instead of play around too hard with server configuration and installation, I will show you how to choose a very good hosting with good price and support.
It is not easy to choose a good magento hosting provider to get your magento work well. The most case you only need shared web hosting what support everything for Magento. And your hosting provider must have magento expert to help you solve problem come from Magento. Our recommend is A2 Magento Hosting package. They have everything you need include Memcached what can help you speed up a lot.
And finally, the last thing after you buy a good host is follow this article instruction How to Optimize Magento Performance?
4. MySQL configuration optimization
A little bit advance but let me bring to here too. If you’re a mysql hero, you don’t need me to tell you how but we want to try and get the following settings in your my.cnf
query_cache_type = 1 query_cache_size = 32M query_cache_limit=2M
If you don’t have root access to check /etc/my.cnf (or /etc/mysql/my.cnf) variables, then login to mysql or use phpmyadmin to show variables.
$ mysql -u mysqluser -p magento_database_name $ mysql> SHOW VARIABLES;
And finally do a little setting for php.ini
php_value memory_limit 128M
5. Advantage performance optimization
– This is come in a too complex works what I can’t write everything here. Basically, the magento system is complex and one of the way to speed up magento is make strategy for caching in process workflow. This can be done by Full page caching extension.
– Another caching way what can help you a lot in caching with combine server and magento process is Varnish caching with Varnish magento extension. You can find out here. But it is not easy to install and configure at all.
If you need help for this you can contact us to have a quote for your site.
I followed all of steps above and I see my site faster a lot, but I wonder if I even make it faster? One more thing I don’t know is what is the good speed for magento? 1 sec/page load or 2 sec/page load? Thanks and good luck for the speed up magento works.
How many product in your magento site? And what is your hosting package?
Because a hosting will be designed for the limited resource, so that let ‘s say you have a very simple site with < 50 products and < 500 visits/day then you are fine with Starter (lowest package) of SiteGround Magento package
I am wondering when we buy a hosting, does they do the optimization on server for us or we have to do ourselves?
Of course, they do it for us. Actually, they do it for them. Because if their server don’t work well and your site take a lot of their resource, they will have no way to make money. But we will consider to choose the company who can do the optimization and make it work well. Not many companies can do that, you know.
The step (3) I see you are talking about server, I think you should put it on the top because if the server/hosting is not good then all of other steps will not work too.
Thanks Jenifer, I hope to put (1) and (2) for customers who already got the good hosting but they don’t know how to configure. I wish they can make their magento site faster a lot after (1) and (2) then they don’t have to buy any other hosting. But if they still can’t get it fast, so it ‘s time to buy the good magento hosting.
Thanks admin, you did a great job what help me speed up magento site a lot.
I think the most important step is “3. Magento server configuration optimization”, if we don’t get the server/hosting work well with magento then other steps are just waste time. I did all of steps until I move to new hosting in step (3) then everything become fast. Just want to share you guys here!
Thanks for that useful info!
I’m using full Page cache extension by Amasty now, it works great for me.
You can also read this interesting research
http://blog.amasty.com/amasty-research-how-fast-can-magento-be-with-full-page-cache/
I used the same extension like you, but I use for my old hosting and it doesn’t work until I move to the new hosting company
Sure, you need to choose the magento hosting first.
What about improving magento search speed – http://www.magentocommerce.com/magento-connect/blast-lucene-search-advanced-magento-search.html
Do you have any suggestion for full page cache solution for magento? Thanks
In order to speed up the Magento Admin Panel, you need to:
1. Set up Varnish cache
2. Tune up the database
3. Clean up the cache
4. Delete unused extensions
5. Delete out-of-sale products
6. Reindex your products
In order to speed up Magento Frontend performance, you need to:
1. Compress the output
2. Use Expires Headers
3. Merge CSS files with JS files
4. Use Memcached
5. Use Parallel Downloads
For more information, download the e-book, 11 Definite Ways To Speed Up Magento Websites, now.
http://www.cloudways.com/en/speed-up-magento-website.php
Thank Fahad, it ‘s always nice to know more document to speed up magento. I will try to update as much as possible base on new document. Thanks again.
That ‘s cool, looking forward to your update to make the article much more useful. Thanks!
It help my magento site faster at least 4x after doing your instruction. That ‘s cool. But I even want to make it faster. How can I do more to optimize? I see some other magento site, they make it faster my site a lot.
Just one word – Nice. you did a great job to provide us this tutorial, it ‘s really helpful to make magento work faster. Thanks
Thanks Jackie. Actually, speed up magento page load is a big work, we will face to the big problem if the site become too big. I mean the big data with thousands of products and customers. In this case, we need some special configuration from server to make it work fast enough.
It ‘s cool to know a very simple way to speed up magento, but I think you should update more about one page cache extension or minify javascript/css. It would be nicer.
Sure, Hamled, our team will update you with more tools and more tips to make magento work fast really soon. Thanks for your suggestions!
Speed up magento need an important step is install and configure full page cache extension but you don’t have that step, do you? I think it will be perfect if you update this article about installing magento full page cache extension. Thanks
Speed up magento steps need install a full page caching solution. Base on your skills, you can choose from many free or paid options. We will update soon many options for you in this field
If you use the full page cache extension to speed up magento, I think you just need to use the free one. Don’t need to spend money for the paid one. But you need to spend money for support time.
hi, Can anybody tell me that how can I enable gZip for my Magento Website.
You can add this code in .htaccess to enable gZip
Hi,
Install web accelerators like “Apachebooster” and the websites will load much faster than before.
It enhances the cache and the performance of the site become much better.
How can I install it? Can I request install it on shared hosting package? I see the suggestion from this post is SiteGround, I am wondering if their supercacher provide the solution better than Apachebooster?
Magento is a popular open source CMS used by ecommerce based websites.
magento website can be tuned and optimized for a better performance
Step 1) by setting up magento caching
Step 2) install fooman speedster extension
Step3) Remove unused homepage code
Step4) .htaccess expires (It needs mod_expires enabled in the server)
Step5) Enable flat categories and flat products
More info may be found from here : http://ndimensionz.com/kb/tweak-magento-website-for-a-better-performance/
How about Varnish? Is it difficult to install and configure? Can you share an article about it? Thanks
I think if you use CDN like MaxCDN then you don’t need varnish, it ‘s best for static cache anyway.
you are right, linh. If you decide to use all static files what are served by CDN then you don’t need to use varnish.
very easy tutorial to speed up magento, it work really cool. I figure out that one of main reason why my magento site not work well is server configuration and after moving to new hosting, it work really fast now.
Thanks, we are working hard to post more useful tips.
It ‘s super fast magento site after doing all of your steps. That ‘s great to know your site. Thanks for a nice tutorial
It ‘s really useful to make my magento faster with your tutorial. Thanks man. You did a great job.
Thanks, your comment is very helpful for our team to do more better job on new tutorial.
Hi
Could you please explain more about point 5.?
(5) is high tech task what need you have to be an expert in server administration to do. You can contact us so we will tell you more about that. Thanks
thanks so much , really useful …. i hope that see more from you “magento2x”
this was wonderful and for my client site , it work really 2x faster !!!!! good luck
Following things can faster your web page speed,
1. Improve server health.
2. Enable caching.
3. Lower the Image file Size.
4. optimize your CSS
Read for more info: http://bit.ly/1JOw0jF
I think the most important step is the hosting selection. I did all of other steps and it just speed up 2x. But after moving to new hosting from suggestion, it become crazy fast.
Work like a superman, thanks a lot admin, you did a very nice for magento speed. Just need to follow all of steps and the magic happen. Cool!
Thanks Codla
I follow your steps and till the server/hosting step. After moving everything faster a lot. I guess the main issue come in my case is server side what make the magento site very slow from server load. Thanks for your help.
The best advices I’ve ever gone through regarding speeding up magento!
Thank you.
Can’t believe I can figure out this very nice post to speed up magento. It ‘s so easy to make magento work fast with some simple steps. Thanks admin, keep a good sharing your nice information. I love it
There are a number of ways in which you can improve the speed of a Magento website, like using some caching mechanisms, tweaking the MySQL configuration etc. but hosting a Magento website on a fast and reliable SSD VPS will make the biggest difference.
From my own experience I have found RoseHosting to be the most reliable VPS hosting provider. I host my website on a VPS hosted by rosehosting.com running on Ubuntu 14.04 and LEMP stack. My Magento based website is always lightning fast and my server has no downtime which is absolutely amazing.
Thanks David, could you send us your site URL to our email magento2x@gmail.com ? We would love to check and learn from your experience.
Very good tutorial, it just save me a lot of time to figure out the good hosting, the good way to configure and the best way to make it fast. Thanks admin for a nice help.
Siteground is not a good hosting supplier, though their wordpress and customer service is really better, but for magento, you need to choose the Cloud hosting or higher, the sharing hosting is very not good for magento, especial the cron job, the less time at Siteground is 30 minute, other hosting default time is 1 minute to 5 minute for hosting. What I said is fact, because I am also their customer, and I paid the hosting for 1 year, but because of its hosting not good for magento, I have to give up it, there are still more than 5 month time, not happy!!! 🙁
Thanks for your post! It’s very great to speed up Magento site. But what about JavaScript, whether we can do something with JavaScript for better site performance?
Because I find out this extension on Magento Connect: https://www.magentocommerce.com/magento-connect/defer-javascript.html
I read about this extension and see that deferring JavaScript till the last moment after loading all HTML and CSS is also an effective way to reduce loading time and speed up Magento site.
I recommend you move step 3 to step 1. If the server/hosting is not good then all of other steps that follow will not work.
Informative Post. We also work on Magento and create extensions with new and advance features.
we use this config:
https://github.com/magenx/Magento-Automated-Server-Configuration-from-MagenX
Very useful list, thanks
Configuring magento server i think is the main task for speeing the website up.
Using the above steps of this blog, To speed up your Magento website is easy now! Otherwise, you can take the help of the Magento developer to modify your website speed if you are not much aware of this platform. https://rvtechnologies.com/magento-ecommerce-development-company/
Wanna learn how to get google to index my site. Then you should also Make sure Google can crawl your website, index and rank all your primary pages by only serving Googlebot high-quality, user friendly and fast loading pages to index.
Cool post. Thanks for sharing the great insights.