It seems that I’m constantly needing to speed up Magento for different clients and its so time consuming to go through all of the tutorials and suggestions.
I’m going to break it down in the fastest way possible and leave out anything that takes more than 5 minutes, feel free to skip steps.
This GUIDE is the REAL quick way of doing it. I bare no responsibility for how your magento functions after! It should be fine.
Magento 1.5.1+
Step 1. Combining CSS/JS
To turn this on, go in the Magento Admin Panel to “System” > “Configuration”, from the left navigation panel, click on “Developer” link from the “Advance” panel (all the way at the bottom). Look for the two tabs “Javascript Settings” and “CSS Settings” and you want to select “Yes” for the Merge files options in both.
Step 2. Enable GZIP
.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 # Don’t compress images SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary # Make sure proxies don’t deliver the wrong content Header append Vary User-Agent env=!dont-vary
Remove #
# enable resulting html compression php_flag zlib.output_compression on
Step 3.Fix MYSQL Caching
/etc/my.cnf
key_buffer = 512M max_allowed_packet = 64M table_cache = 512 sort_buffer_size = 4m 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
Step 4. Fix File Caching
/home/yoursitename/public_html/app/etc/local.xml
Change files to db or xcache memcache apc
<cache> <backend>apc</backend> <prefix>alphanumeric</prefix> </cache>
Step 5. Keep Alives On
/etc/httpd/httpd.conf
KeepAlive on
Step 5. Turn Logging Off
In the Magento Admin Panel go to “System” > “Configuration”, from the left panel choose “Advanced” from the “Advanced” Panel at the bottom left. Look for the module “Mage_Log” and set it to ‘disable’ and save.
More Information
Sources: Blasted Thing | Activo | Webpage Speed Test | Great Magento Templates
Thanks admin for your nice info for speed up Magento! I just think you share right thought in your opinion.
Thanks a lot, this was really helpful and quick!
Great article.
Speeding up Magento is a sorted after request.
Regards,
Mick
Thanks for the guide.
One question: where ist the /etc/my.cnf file? in public_html or in magento folder? have no such file.
Thanks
First, thank you for the info, and your point of view. I could enjoy this weblog and especially this.
At this point, I feel I fritter away far too much time on the web, analyzing
junk, generally. This is a refreshing change from what I’ve
known. Still, I believe reading other people’s ideas is a valuable investiture of
at any rate some of my regular measure of time in my timetable.
It’s just like sifting throughout the junk heap to
obtain the wheat. Or maybe, whatever analogy performs best for you.
Still, near the home pc is most likely as bad for you as cigarettes and fried
chips. http://njmassage.info/
Upon reflection, I felt like your post is and not keeping your head stuck in the phone the
whole while, either) and living a life with appreciation for the
natural world, keeps people feeling sane and feeling joyous.
Considering key subjects is likewise an experience that
can assist us to know ourselves. https://Spg.cacsite.com/bella/