Book Image

Instant Magento Performance Optimization How-to

By : Nayrolles Mathieu (USD), Mathieu Nayrolles
Book Image

Instant Magento Performance Optimization How-to

By: Nayrolles Mathieu (USD), Mathieu Nayrolles

Overview of this book

The optimization of an attractive commercial website is a non-trivial task that demands time and knowledge. Optimization is a critical point for all growing businesses because a misconfiguration could make you lose money, a lot of money. If your server is overloaded, a browser that wants to turn into a buyer will not be able to, and you will lose customers. "Instant Magento Performance Optimization How-To" is a practical, hands-on guide that provides you with a number of clear, step-by-step exercises to help you reach a high performance level for your Magento stores and keep your customers satisfied.This book looks at tweaks and tips used to boost your Magento Performance, and breaks down the confusion that surrounds the subject.You will learn how to compress your pages, styles, and scripts by almost 80%. We will also take a look at controversial optimization settings such as Magento core compilation or enabling all caching systems. You will discover new applications that improve performance. If you wish your e-businesses to grow and want to keep your customers satisfied, you definitely need this book.
Table of Contents (7 chapters)

Logging (Must know)


Check what Magento tells us about the bug you are confronting.

How to do it...

Go to System | Configuration | Advanced | Developer | Log Settings.

Select Yes from the drop-down menu and save your configuration in the top-right corner. From this moment, all actions done by Magento will be stored in two files, system.log and exception.log, under YOUR_STORE.COM/var/log.

How it works...

Every time the instruction Mage::log ("your log") is called, a line is written in system.log, and in exception.log when Mage::logException ("your exception") is called. You can use the native one for debugging your Magento or place a customized one where you need it.

There's more...

Here, you will find some tips about how to allow your web server to write a log and how to locate the web server logs.

Permission for the web server

Don't forget to apply chmod 0777 on the var/logs directory to allow your web server to write data there.

Apache error_log

When you can't find the answer you're looking for in the Magento log, have a look at Apache's error_log. Indeed, your errors could belong to your web server.